pub struct EmailConfig {Show 13 fields
pub enabled: bool,
pub imap_host: String,
pub imap_port: u16,
pub smtp_host: String,
pub smtp_port: u16,
pub username: String,
pub password_env: String,
pub from_address: String,
pub allowed_senders: Vec<String>,
pub poll_interval_seconds: u64,
pub oauth2_token_env: String,
pub use_oauth2: bool,
pub imap_idle_enabled: bool,
}Fields§
§enabled: bool§imap_host: String§imap_port: u16§smtp_host: String§smtp_port: u16§username: String§password_env: String§from_address: String§allowed_senders: Vec<String>§poll_interval_seconds: u64§oauth2_token_env: StringEnvironment variable name holding the OAuth2 access token (for Gmail XOAUTH2).
use_oauth2: boolPrefer XOAUTH2 authentication over password-based login.
imap_idle_enabled: boolUse IMAP IDLE for push notifications when the server supports it (default: true).
Trait Implementations§
Source§impl Clone for EmailConfig
impl Clone for EmailConfig
Source§fn clone(&self) -> EmailConfig
fn clone(&self) -> EmailConfig
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 moreSource§impl Debug for EmailConfig
impl Debug for EmailConfig
Source§impl Default for EmailConfig
impl Default for EmailConfig
Source§impl<'de> Deserialize<'de> for EmailConfig
impl<'de> Deserialize<'de> for EmailConfig
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
Auto Trait Implementations§
impl Freeze for EmailConfig
impl RefUnwindSafe for EmailConfig
impl Send for EmailConfig
impl Sync for EmailConfig
impl Unpin for EmailConfig
impl UnsafeUnpin for EmailConfig
impl UnwindSafe for EmailConfig
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