[][src]Trait jwt::FromBase64

pub trait FromBase64: Sized {
    fn from_base64<Input: ?Sized + AsRef<[u8]>>(
        raw: &Input
    ) -> Result<Self, Error>; }

A trait used to parse objects from base64 encoding. The return type can be either owned if the header is dynamic, or it can be borrowed if the header is a static, pre-computed value. It is implemented automatically for every type that implements DeserializeOwned for the base64 encoded JSON representation.

Required methods

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

Loading content...


impl<T: DeserializeOwned + Sized> FromBase64 for T[src]

Loading content...