Function serdect::slice::serialize_hex_lower_or_bin

source ยท
pub fn serialize_hex_lower_or_bin<S, T>(
    value: &T,
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer, T: AsRef<[u8]>,
Expand description

Serialize the given type as lower case hex when using human-readable formats or binary if the format is binary.