Enum vsmtp_common::TransactionType
pub enum TransactionType {
Incoming(Option<Domain>),
Outgoing {
domain: Domain,
},
Internal,
}
Expand description
What rules should be executed regarding the domains of the sender and recipients.
Variants§
Incoming(Option<Domain>)
The sender’s domain is unknown, contained domain is only one of the recipients. If none, it means all recipients are unknown, or that the rcpt stage has not yet been executed.
Outgoing
The sender’s domain is known, and the recipient domain is not : going out.
Internal
The sender’s domain is known, and recipients domains are the same. Use the sender’s domain to execute your rules.
Trait Implementations§
§impl Clone for TransactionType
impl Clone for TransactionType
§fn clone(&self) -> TransactionType
fn clone(&self) -> TransactionType
Returns a copy 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 more§impl Debug for TransactionType
impl Debug for TransactionType
§impl<'de> Deserialize<'de> for TransactionType
impl<'de> Deserialize<'de> for TransactionType
§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