pub struct EnvelopeData {
pub from: Option<String>,
pub rcpt: Vec<String>,
pub ip: Option<String>,
pub user: Option<String>,
pub helo: Option<String>,
pub hostname: Option<String>,
pub additional_headers: HashMap<String, String>,
}Fields§
§from: Option<String>Sender email address
rcpt: Vec<String>Recipients email addresses
ip: Option<String>Optional IP address of the sender
user: Option<String>Optional IP of the sender
helo: Option<String>Optional HELO string
hostname: Option<String>Optional hostname
additional_headers: HashMap<String, String>Optional additional headers
Implementations§
Source§impl EnvelopeData
impl EnvelopeData
Sourcepub fn builder() -> EnvelopeDataBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> EnvelopeDataBuilder<((), (), (), (), (), (), ())>
Create a builder for building EnvelopeData.
On the builder, call .from(...)(optional), .rcpt(...)(optional), .ip(...)(optional), .user(...)(optional), .helo(...)(optional), .hostname(...)(optional), .additional_headers(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of EnvelopeData.
Trait Implementations§
Source§impl Debug for EnvelopeData
impl Debug for EnvelopeData
Source§impl Default for EnvelopeData
impl Default for EnvelopeData
Source§fn default() -> EnvelopeData
fn default() -> EnvelopeData
Returns the “default value” for a type. Read more
Source§impl IntoIterator for EnvelopeData
impl IntoIterator for EnvelopeData
Source§impl PartialEq for EnvelopeData
impl PartialEq for EnvelopeData
impl StructuralPartialEq for EnvelopeData
Auto Trait Implementations§
impl Freeze for EnvelopeData
impl RefUnwindSafe for EnvelopeData
impl Send for EnvelopeData
impl Sync for EnvelopeData
impl Unpin for EnvelopeData
impl UnwindSafe for EnvelopeData
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