pub enum ValidateError {
Missing,
Expired {
field: ExpiredField,
expires: SystemTime,
checked: SystemTime,
},
}
Expand description
Kinds of errors for validating a request
Variants§
Missing
The Authorization or Signature header is not present
Expired
Fields
§
field: ExpiredField
Which field did the date come from
§
expires: SystemTime
When did the signature expire
§
checked: SystemTime
When was the signature checked
The request’s created
or expires
field indicates it is too old to be valid
Trait Implementations§
source§impl Clone for ValidateError
impl Clone for ValidateError
source§fn clone(&self) -> ValidateError
fn clone(&self) -> ValidateError
Returns a copy 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 ValidateError
impl Debug for ValidateError
source§impl Display for ValidateError
impl Display for ValidateError
source§impl Error for ValidateError
impl Error for ValidateError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ValidateError> for PrepareVerifyError
impl From<ValidateError> for PrepareVerifyError
source§fn from(e: ValidateError) -> Self
fn from(e: ValidateError) -> Self
Converts to this type from the input type.