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.
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 (const: unstable) · 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 Forget for AuthStatus
impl Freeze for AuthStatus
impl Move for AuthStatus
impl RefUnwindSafe for AuthStatus
impl Send for AuthStatuswhere
RawVecInner: Send,
impl Sync for AuthStatuswhere
RawVecInner: Sync,
impl Unpin for AuthStatus
impl UnsafeUnpin for AuthStatus
impl UnwindSafe for AuthStatuswhere
RawVecInner: UnwindSafe,
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