pub struct Validation { /* private fields */ }Expand description
Refer to the Validation struct from the jsonwebtoken crate for more information.
Implementations§
Source§impl Validation
impl Validation
pub fn new() -> Self
pub fn required_spec_claims(self, required_spec_claims: HashSet<String>) -> Self
pub fn leeway(self, leeway: u64) -> Self
pub fn reject_tokens_expiring_in_less_than( self, reject_tokens_expiring_in_less_than: u64, ) -> Self
pub fn validate_exp(self, validate_exp: bool) -> Self
pub fn validate_nbf(self, validate_nbf: bool) -> Self
pub fn validate_aud(self, validate_aud: bool) -> Self
pub fn aud<T: ToString>(self, aud: &[T]) -> Self
pub fn iss<T: ToString>(self, iss: &[T]) -> Self
pub fn sub<T: ToString>(self, sub: T) -> Self
pub fn insecure_disable_signature_validation(self) -> Self
pub fn to_jsonwebtoken_validation( &self, algorithm: Algorithm, ) -> JsonWebTokenValidation
Trait Implementations§
Source§impl Clone for Validation
impl Clone for Validation
Source§fn clone(&self) -> Validation
fn clone(&self) -> Validation
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 moreSource§impl Debug for Validation
impl Debug for Validation
Auto Trait Implementations§
impl Freeze for Validation
impl RefUnwindSafe for Validation
impl Send for Validation
impl Sync for Validation
impl Unpin for Validation
impl UnwindSafe for Validation
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