[][src]Trait jwt::legacy::Component

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

This is usually implemented through a blanket impl, but if needed use the ToBase64 and FromBase64 traits

Required methods

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

Deprecated:

This is usually implemented through a blanket impl, but if needed use the ToBase64 and FromBase64 traits

fn to_base64(&self) -> Result<String, Error>

Deprecated:

This is usually implemented through a blanket impl, but if needed use the ToBase64 and FromBase64 traits

Loading content...

Implementors

impl<T: ToBase64 + FromBase64> Component for T[src]

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

Deprecated:

This is usually implemented through a blanket impl, but if needed use the ToBase64 and FromBase64 traits

Parse from a string.

fn to_base64(&self) -> Result<String, Error>[src]

Deprecated:

This is usually implemented through a blanket impl, but if needed use the ToBase64 and FromBase64 traits

Encode to a string.

Loading content...