pub struct ValidAuthToken(pub bool, pub Option<String>, pub Option<i64>, pub AuthStatus);
Expand description
Return type for the from_dyaamic_key() method This is a simple tuple struct with getter methods for age() milliseconds since the decoded timestamp uuid embedded UUID if available has_user() indicates whether valid UUID-like string is embedded status() The outcome showing where or if validation failed status_key() a human-readable snake-case key indicating the status
Tuple Fields§
§0: bool
§1: Option<String>
§2: Option<i64>
§3: AuthStatus
Implementations§
Trait Implementations§
Source§impl Clone for ValidAuthToken
impl Clone for ValidAuthToken
Source§fn clone(&self) -> ValidAuthToken
fn clone(&self) -> ValidAuthToken
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 moreAuto Trait Implementations§
impl Freeze for ValidAuthToken
impl RefUnwindSafe for ValidAuthToken
impl Send for ValidAuthToken
impl Sync for ValidAuthToken
impl Unpin for ValidAuthToken
impl UnwindSafe for ValidAuthToken
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