pub enum EmailAuth {
Password {
username: String,
password: SecretString,
},
OAuth2Static {
username: String,
access_token: SecretString,
refresh_token: Option<SecretString>,
expires_at: Option<i64>,
},
OAuth2Google {
username: String,
google_account_id: String,
},
}Variants§
Password
OAuth2Static
OAuth2Google
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmailAuth
impl RefUnwindSafe for EmailAuth
impl Send for EmailAuth
impl Sync for EmailAuth
impl Unpin for EmailAuth
impl UnsafeUnpin for EmailAuth
impl UnwindSafe for EmailAuth
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