Trait FromBase64

Source
pub trait FromBase64: Sized {
    // Required method
    fn from_base64<Input: ?Sized + AsRef<[u8]>>(raw: &Input) -> Result<Self>;
}
Expand description

Trait for converting from base64-encoded JSON to types.

Required Methods§

Source

fn from_base64<Input: ?Sized + AsRef<[u8]>>(raw: &Input) -> Result<Self>

Convert from a base64-encoded JSON string to the type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: for<'de> Deserialize<'de> + Sized> FromBase64 for T