pub fn validate(&self, options: ValidationOptions) -> Result<(), ValidationError> {
        self.validate_claim_presence(options.claim_presence_options)?;
        self.validate_exp(options.expiry.map(|_| options.temporal_options))?;
        self.validate_nbf(options.not_before.map(|_| options.temporal_options))?;
        self.validate_iat(options.issued_at.map(|dur| (dur, options.temporal_options)))?;

        self.validate_iss(options.issuer)?;
        self.validate_aud(options.audience)?;

        //        self.validate_sub(options.subject_validated)?;
        //        self.validate_custom(options.custom_validation)?;

        Ok(())
    }
/// Performs full validation of the token according to the `ValidationOptions` supplied
///
/// First it validates that all claims marked as required are present
/// Then it validates each claim marked to be validated if they are present in the token
/// (even those that are not marked as required, but are present).
Performs full validation of the token according to the `ValidationOptions` supplied
First it validates that all claims marked as required are present
Then it validates each claim marked to be validated if they are present in the token
(even those that are not marked as required, but are present).
Performs full validation of the token according to the ` ValidationOptions ` supplied First it validates that all claims marked as required are present Then it validates each claim marked to be validated if they are present in the token ( even those that are not marked as required but are present ) .
pub fn validate(&self, options: ValidationOptions) -> Result<(), ValidationError> {
        self.validate_claim_presence(options.claim_presence_options)?;
        self.validate_exp(options.expiry.map(|_| options.temporal_options))?;
        self.validate_nbf(options.not_before.map(|_| options.temporal_options))?;
        self.validate_iat(options.issued_at.map(|dur| (dur, options.temporal_options)))?;
        self.validate_iss(options.issuer)?;
        self.validate_aud(options.audience)?;
        //        self.validate_sub(options.subject_validated)?;
        //        self.validate_custom(options.custom_validation)?;
        Ok(())
    }
pub fn validate ( & self , options : ValidationOptions ) -> Result < ( ) , ValidationError > { self . validate_claim_presence ( options . claim_presence_options ) ? ; self . validate_exp ( options . expiry . map ( | _ | options . temporal_options ) ) ? ; self . validate_nbf ( options . not_before . map ( | _ | options . temporal_options ) ) ? ; self . validate_iat ( options . issued_at . map ( | dur | ( dur , options . temporal_options ) ) ) ? ; self . validate_iss ( options . issuer ) ? ; self . validate_aud ( options . audience ) ? ; //        self.validate_sub(options.subject_validated)?; //        self.validate_custom(options.custom_validation)?; Ok ( ( ) ) }
Performs full validation of the token according to the `ValidationOptions` supplied
First it validates that all claims marked as required are present
Then it validates each claim marked to be validated if they are present in the token
(even those that are not marked as required, but are present).
Performs full validation of the token according to the ` ValidationOptions ` supplied First it validates that all claims marked as required are present Then it validates each claim marked to be validated if they are present in the token ( even those that are not marked as required but are present ) .
&self
options
ValidationOptions
&self
options
ValidationOptions