pub struct EmailConfig {Show 21 fields
pub enabled: bool,
pub consent_granted: bool,
pub imap_host: String,
pub imap_port: u16,
pub imap_username: String,
pub imap_password: String,
pub imap_mailbox: String,
pub imap_use_ssl: bool,
pub smtp_host: String,
pub smtp_port: u16,
pub smtp_username: String,
pub smtp_password: String,
pub smtp_use_tls: bool,
pub smtp_use_ssl: bool,
pub from_address: String,
pub auto_reply_enabled: bool,
pub poll_interval_seconds: u64,
pub mark_seen: bool,
pub max_body_chars: usize,
pub subject_prefix: String,
pub allow_from: Vec<String>,
}Expand description
Email channel configuration
Fields§
§enabled: bool§consent_granted: bool§imap_host: String§imap_port: u16§imap_username: String§imap_password: String§imap_mailbox: String§imap_use_ssl: bool§smtp_host: String§smtp_port: u16§smtp_username: String§smtp_password: String§smtp_use_tls: bool§smtp_use_ssl: bool§from_address: String§auto_reply_enabled: bool§poll_interval_seconds: u64§mark_seen: bool§max_body_chars: usize§subject_prefix: String§allow_from: Vec<String>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