pub struct EmailGuardConfig {
pub max_per_recipient: u32,
pub rate_window_secs: u64,
pub max_recipients: u32,
pub max_subject_len: usize,
pub max_body_len: usize,
pub max_name_len: usize,
pub blocked_domains: Vec<String>,
}Expand description
Configuration for the email guard.
Fields§
§max_per_recipient: u32Maximum emails per recipient per window.
rate_window_secs: u64Time window for rate limiting (seconds).
max_recipients: u32Maximum recipients per single email.
max_subject_len: usizeMaximum subject length.
max_body_len: usizeMaximum body/message field length.
max_name_len: usizeMaximum username/name field length.
blocked_domains: Vec<String>Blocked email domains.
Trait Implementations§
Source§impl Clone for EmailGuardConfig
impl Clone for EmailGuardConfig
Source§fn clone(&self) -> EmailGuardConfig
fn clone(&self) -> EmailGuardConfig
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 EmailGuardConfig
impl Debug for EmailGuardConfig
Source§impl Default for EmailGuardConfig
impl Default for EmailGuardConfig
Source§impl<'de> Deserialize<'de> for EmailGuardConfig
impl<'de> Deserialize<'de> for EmailGuardConfig
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 EmailGuardConfig
impl RefUnwindSafe for EmailGuardConfig
impl Send for EmailGuardConfig
impl Sync for EmailGuardConfig
impl Unpin for EmailGuardConfig
impl UnsafeUnpin for EmailGuardConfig
impl UnwindSafe for EmailGuardConfig
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