Struct lettre::smtp::response::Response [−][src]
Expand description
Contains an SMTP reply, with separated code and message
The text message is optional, only the code is mandatory
Fields
code: Code
Response code
message: Vec<String>
Server response string (optional) Handle multiline responses
Implementations
impl Response
[src]
impl Response
[src]pub fn is_positive(&self) -> bool
[src]
pub fn is_positive(&self) -> bool
[src]Tells if the response is positive
pub fn first_word(&self) -> Option<&str>
[src]
pub fn first_word(&self) -> Option<&str>
[src]Returns only the first word of the message if possible
pub fn first_line(&self) -> Option<&str>
[src]
pub fn first_line(&self) -> Option<&str>
[src]Returns only the line of the message if possible
Trait Implementations
impl<'de> Deserialize<'de> for Response
[src]
impl<'de> Deserialize<'de> for Response
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl FromStr for Response
[src]
impl FromStr for Response
[src]type Err = NomErrorKind
type Err = NomErrorKind
The associated error which can be returned from parsing.
impl Eq for Response
[src]
impl StructuralEq for Response
[src]
impl StructuralPartialEq for Response
[src]
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,