pub enum AuthStatus {
Authenticated {
label: Option<String>,
age_seconds: u64,
expires_in: Option<u64>,
},
NotAuthenticated,
}Expand description
OAuth authentication status.
Variants§
Authenticated
User is authenticated with OAuth
Fields
NotAuthenticated
User is not authenticated via OAuth
Implementations§
Source§impl AuthStatus
impl AuthStatus
Sourcepub fn is_authenticated(&self) -> bool
pub fn is_authenticated(&self) -> bool
Check if the user is authenticated.
Sourcepub fn display_string(&self) -> String
pub fn display_string(&self) -> String
Get a human-readable status string.
Trait Implementations§
Source§impl Clone for AuthStatus
impl Clone for AuthStatus
Source§fn clone(&self) -> AuthStatus
fn clone(&self) -> AuthStatus
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 moreAuto Trait Implementations§
impl Freeze for AuthStatus
impl RefUnwindSafe for AuthStatus
impl Send for AuthStatus
impl Sync for AuthStatus
impl Unpin for AuthStatus
impl UnwindSafe for AuthStatus
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