ToBase64

Trait ToBase64 

Source
pub trait ToBase64 {
    // Required method
    fn to_base64(&self) -> Result<Cow<'_, str>>;
}
Expand description

Trait for converting types to base64-encoded JSON.

Required Methods§

Source

fn to_base64(&self) -> Result<Cow<'_, str>>

Convert the type to a base64-encoded JSON string.

Implementors§