Trait jsonwebtoken::Part [] [src]

pub trait Part {
    fn from_base64(encoded: String) -> Result<Self, Error> where Self: Sized;
    fn to_base64(&self) -> Result<StringError>;
}

A part of the JWT: header and claims specifically Allows converting from/to struct with base64

Required Methods

fn from_base64(encoded: String) -> Result<Self, Error> where Self: Sized

fn to_base64(&self) -> Result<StringError>

Implementors