pub struct Code {
pub severity: Severity,
pub category: Category,
pub detail: Detail,
}
Available on crate feature
smtp-transport
only.Expand description
Represents a 3 digit SMTP response code
Fields§
§severity: Severity
First digit of the response code
category: Category
Second digit of the response code
detail: Detail
Third digit
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Code
impl<'de> Deserialize<'de> for Code
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
source§impl PartialEq for Code
impl PartialEq for Code
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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