pub struct VerifyOptions<'a> {
pub key_data: VerifyKeyData<'a>,
pub validate_exp: bool,
pub validate_nbf: bool,
pub leeway: u64,
}Expand description
Advanced verification options for JWT token
Fields§
§key_data: VerifyKeyData<'a>The key data (secret or public key)
validate_exp: boolWhether to validate the expiration claim
validate_nbf: boolWhether to validate the not-before claim
leeway: u64Leeway in seconds for time-based claims
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VerifyOptions<'a>
impl<'a> RefUnwindSafe for VerifyOptions<'a>
impl<'a> Send for VerifyOptions<'a>
impl<'a> Sync for VerifyOptions<'a>
impl<'a> Unpin for VerifyOptions<'a>
impl<'a> UnsafeUnpin for VerifyOptions<'a>
impl<'a> UnwindSafe for VerifyOptions<'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