macro_toolset::base64

Function encode

Source
pub fn encode<T>(input: T) -> String
where T: AsRef<[u8]>,
👎Deprecated since 0.21.0: Use Engine::encode
Expand description

Encode arbitrary octets as base64 using the STANDARD engine.

See Engine::encode.