pub struct RoutingRuleConfig {
pub address: Option<String>,
pub domain: Option<String>,
pub handler: String,
pub transformers: Option<Vec<TransformerConfig>>,
pub auth_required: Option<bool>,
}Expand description
A single routing rule that matches by address or domain.
Fields§
§address: Option<String>Exact email address match (e.g. “admin@example.com”).
domain: Option<String>Domain match, supports wildcard prefix (e.g. “example.com” or “*.example.com”).
handler: StringName of the handler to route to.
transformers: Option<Vec<TransformerConfig>>Transformers for this rule, overrides the default transformers if present.
auth_required: Option<bool>Whether authentication is required for recipients matching this rule.
Overrides the global smtp.auth_required setting when present.
Trait Implementations§
Source§impl Clone for RoutingRuleConfig
impl Clone for RoutingRuleConfig
Source§fn clone(&self) -> RoutingRuleConfig
fn clone(&self) -> RoutingRuleConfig
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 RoutingRuleConfig
impl Debug for RoutingRuleConfig
Source§impl<'de> Deserialize<'de> for RoutingRuleConfig
impl<'de> Deserialize<'de> for RoutingRuleConfig
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 RoutingRuleConfig
impl RefUnwindSafe for RoutingRuleConfig
impl Send for RoutingRuleConfig
impl Sync for RoutingRuleConfig
impl Unpin for RoutingRuleConfig
impl UnsafeUnpin for RoutingRuleConfig
impl UnwindSafe for RoutingRuleConfig
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