/// Helper functions for encoding `Bytes`s as `String`s.
pubenumJsonBytes{}implJsonBytes{/// Encode a binary string as a string.
pubfnencode(bytes:&Vec<u8>)-> String{base64::encode(&bytes[..])}/// Decode a binary string from a string.
pubfndecode(s: String)->anyhow::Result<Vec<u8>>{Ok(base64::decode(s.as_bytes())?)}}