Struct jwt_compact::UntrustedToken [−][src]
pub struct UntrustedToken<'a> { /* fields omitted */ }
Expand description
Parsed, but unvalidated token.
Implementations
Creates an untrusted token from a string. This is a shortcut for calling the TryFrom
conversion.
Converts this token to an owned form.
Returns signature bytes from the token. These bytes are not guaranteed to form a valid signature.
pub fn deserialize_claims_unchecked<T>(
&self
) -> Result<Claims<T>, ValidationError> where
T: DeserializeOwned,
pub fn deserialize_claims_unchecked<T>(
&self
) -> Result<Claims<T>, ValidationError> where
T: DeserializeOwned,
Deserializes claims from this token without checking token integrity. The resulting claims are thus not guaranteed to be valid.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for UntrustedToken<'a>
impl<'a> Send for UntrustedToken<'a>
impl<'a> Sync for UntrustedToken<'a>
impl<'a> Unpin for UntrustedToken<'a>
impl<'a> UnwindSafe for UntrustedToken<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more