pub struct TokenVerification {
pub success: bool,
pub username: String,
pub permissions: Permissions,
}Expand description
Result of verifying a token via crate::CyberdropClient::verify_token.
Fields§
§success: boolWhether the token verification succeeded.
username: StringUsername associated with the token.
permissions: PermissionsPermission flags associated with the token.
Trait Implementations§
Source§impl Clone for TokenVerification
impl Clone for TokenVerification
Source§fn clone(&self) -> TokenVerification
fn clone(&self) -> TokenVerification
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 TokenVerification
impl Debug for TokenVerification
Source§impl PartialEq for TokenVerification
impl PartialEq for TokenVerification
impl Eq for TokenVerification
impl StructuralPartialEq for TokenVerification
Auto Trait Implementations§
impl Freeze for TokenVerification
impl RefUnwindSafe for TokenVerification
impl Send for TokenVerification
impl Sync for TokenVerification
impl Unpin for TokenVerification
impl UnsafeUnpin for TokenVerification
impl UnwindSafe for TokenVerification
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