pub struct JsonWebToken<'a> { /* private fields */ }Implementations§
Source§impl<'a> JsonWebToken<'a>
impl<'a> JsonWebToken<'a>
pub fn from_claims(claims: &'a [JsonField<'a, 'a>]) -> Self
pub fn serialize<T: Write>( &self, output: T, algorithm: JwtType, secret: &[u8], ) -> Result<usize, T::Error>
pub fn deserialize_claims<const MAX_CLAIMS: usize>( data: &'a [u8], base64buffer: &'a mut [u8], algorithm: JwtType, secret: &[u8], ) -> Result<JsonObject<'a, MAX_CLAIMS>, JwtParseFailure>
Auto Trait Implementations§
impl<'a> Freeze for JsonWebToken<'a>
impl<'a> RefUnwindSafe for JsonWebToken<'a>
impl<'a> Send for JsonWebToken<'a>
impl<'a> Sync for JsonWebToken<'a>
impl<'a> Unpin for JsonWebToken<'a>
impl<'a> UnwindSafe for JsonWebToken<'a>
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