pub enum ServerAuth {
Token {
token: Option<String>,
user_id: Option<String>,
},
Browser {
browser: Option<Browser>,
token: Option<String>,
user_id: Option<String>,
anonymous: bool,
},
}Variants§
Trait Implementations§
Source§impl Clone for ServerAuth
impl Clone for ServerAuth
Source§fn clone(&self) -> ServerAuth
fn clone(&self) -> ServerAuth
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 moreSource§impl Debug for ServerAuth
impl Debug for ServerAuth
impl Eq for ServerAuth
Source§impl PartialEq for ServerAuth
impl PartialEq for ServerAuth
Source§fn eq(&self, other: &ServerAuth) -> bool
fn eq(&self, other: &ServerAuth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerAuth
Auto Trait Implementations§
impl Freeze for ServerAuth
impl RefUnwindSafe for ServerAuth
impl Send for ServerAuth
impl Sync for ServerAuth
impl Unpin for ServerAuth
impl UnsafeUnpin for ServerAuth
impl UnwindSafe for ServerAuth
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