Struct sfo_http::token_helper::JsonWebToken
source · pub struct JsonWebToken;Implementations§
source§impl JsonWebToken
impl JsonWebToken
pub fn encode<T: Serialize>( alg: Algorithm, data: T, expired_at: DateTime<Utc>, key: &EncodingKey ) -> TokenResult<String>
pub fn decode<T: for<'a> Deserialize<'a>>( token: &str, key: &DecodingKey ) -> TokenResult<T>
Auto Trait Implementations§
impl RefUnwindSafe for JsonWebToken
impl Send for JsonWebToken
impl Sync for JsonWebToken
impl Unpin for JsonWebToken
impl UnwindSafe for JsonWebToken
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more