[][src]Trait jwt::Component

pub trait Component: Sized {
    fn from_base64(raw: &str) -> Result<Self, Error>;
fn to_base64(&self) -> Result<String, Error>; }

Required methods

fn from_base64(raw: &str) -> Result<Self, Error>

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

Loading content...

Implementors

impl Component for Claims[src]

impl<T> Component for T where
    T: Serialize + DeserializeOwned + Sized
[src]

fn from_base64(raw: &str) -> Result<T, Error>[src]

Parse from a string.

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

Encode to a string.

Loading content...