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
The request’s created or expires field indicates it is too old to be valid
Fields
§
field: ExpiredFieldWhich field did the date come from
§
expires: SystemTimeWhen did the signature expire
§
checked: SystemTimeWhen was the signature checked
Trait Implementations§
Source§impl Clone for ValidateError
impl Clone for ValidateError
Source§fn clone(&self) -> ValidateError
fn clone(&self) -> ValidateError
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 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)>
Returns 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.
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnwindSafe for ValidateError
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