Struct lettre::smtp::response::Response [] [src]

pub struct Response {
    pub code: Code,
    pub message: Vec<String>,
}

Contains an SMTP reply, with separated code and message

The text message is optional, only the code is mandatory

Fields

Response code

Server response string (optional) Handle multiline responses

Methods

impl Response
[src]

[src]

Creates a new Response

[src]

Tells if the response is positive

[src]

Tests code equality

[src]

Returns only the first word of the message if possible

[src]

Returns only the line of the message if possible

Trait Implementations

impl PartialEq for Response
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Response
[src]

impl Clone for Response
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Response
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Response
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl From<Response> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Response

impl Sync for Response