pub enum ValidationResult {
Valid(TokenInfo),
NotMyToken,
Invalid(String),
Expired,
}Expand description
Result of token validation
Variants§
Valid(TokenInfo)
Token is valid
NotMyToken
Token format not recognized by this validator
Invalid(String)
Token is invalid (wrong signature, malformed, etc.)
Expired
Token has expired
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnwindSafe for ValidationResult
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