pub enum CustomAuthSettings {
Google {
refresh_token: String,
client_id: Option<String>,
client_secret: Option<String>,
},
Microsoft {
refresh_token: String,
client_id: Option<String>,
client_secret: Option<String>,
},
Imap {
imap_host: String,
imap_port: u16,
imap_username: String,
imap_password: String,
smtp_host: String,
smtp_port: u16,
smtp_username: Option<String>,
smtp_password: Option<String>,
},
}Expand description
Custom authentication settings for different providers
Variants§
Trait Implementations§
Source§impl Clone for CustomAuthSettings
impl Clone for CustomAuthSettings
Source§fn clone(&self) -> CustomAuthSettings
fn clone(&self) -> CustomAuthSettings
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 CustomAuthSettings
impl Debug for CustomAuthSettings
Source§impl<'de> Deserialize<'de> for CustomAuthSettings
impl<'de> Deserialize<'de> for CustomAuthSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CustomAuthSettings
impl PartialEq for CustomAuthSettings
Source§fn eq(&self, other: &CustomAuthSettings) -> bool
fn eq(&self, other: &CustomAuthSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CustomAuthSettings
impl Serialize for CustomAuthSettings
impl StructuralPartialEq for CustomAuthSettings
Auto Trait Implementations§
impl Freeze for CustomAuthSettings
impl RefUnwindSafe for CustomAuthSettings
impl Send for CustomAuthSettings
impl Sync for CustomAuthSettings
impl Unpin for CustomAuthSettings
impl UnsafeUnpin for CustomAuthSettings
impl UnwindSafe for CustomAuthSettings
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