pub struct JsonWebToken {
pub header: Header,
pub claims: Claims,
pub signature: Vec<u8>,
}Expand description
A decoded JSON web token. https://www.rfc-editor.org/rfc/rfc7519
Fields§
§header: HeaderThe header.
claims: ClaimsThe claims.
signature: Vec<u8>The signature.
Implementations§
Source§impl JsonWebToken
impl JsonWebToken
Sourcepub fn deserialize(value: &str) -> Option<Self>
pub fn deserialize(value: &str) -> Option<Self>
Deserialize the token from a JSON web token string.
Trait Implementations§
Source§impl Clone for JsonWebToken
impl Clone for JsonWebToken
Source§fn clone(&self) -> JsonWebToken
fn clone(&self) -> JsonWebToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JsonWebToken
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