pub struct MailGuardConfig {
pub dns_timeout: Duration,
pub enable_cache: bool,
pub cache_ttl: Duration,
}Expand description
Email detector configuration
Fields§
§dns_timeout: DurationDNS query timeout
enable_cache: bool是否启用缓存
cache_ttl: Duration缓存 TTL
Trait Implementations§
Source§impl Clone for MailGuardConfig
impl Clone for MailGuardConfig
Source§fn clone(&self) -> MailGuardConfig
fn clone(&self) -> MailGuardConfig
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 MailGuardConfig
impl Debug for MailGuardConfig
Auto Trait Implementations§
impl Freeze for MailGuardConfig
impl RefUnwindSafe for MailGuardConfig
impl Send for MailGuardConfig
impl Sync for MailGuardConfig
impl Unpin for MailGuardConfig
impl UnwindSafe for MailGuardConfig
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