pub struct SmtpResponse {
pub status_code: u16,
pub message: String,
pub delay_ms: u64,
}Expand description
SMTP response configuration
Fields§
§status_code: u16SMTP status code (250 = success, 550 = reject)
message: StringStatus message
delay_ms: u64Delay before responding (milliseconds)
Trait Implementations§
Source§impl Clone for SmtpResponse
impl Clone for SmtpResponse
Source§fn clone(&self) -> SmtpResponse
fn clone(&self) -> SmtpResponse
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 SmtpResponse
impl Debug for SmtpResponse
Source§impl<'de> Deserialize<'de> for SmtpResponse
impl<'de> Deserialize<'de> for SmtpResponse
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 SmtpResponse
impl RefUnwindSafe for SmtpResponse
impl Send for SmtpResponse
impl Sync for SmtpResponse
impl Unpin for SmtpResponse
impl UnwindSafe for SmtpResponse
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