[][src]Struct check_if_email_exists::CheckEmailInput

pub struct CheckEmailInput {
    pub to_emails: Vec<String>,
    pub from_email: String,
    pub hello_name: String,
    pub proxy: Option<CheckEmailInputProxy>,
    pub smtp_timeout: Option<Duration>,
    pub yahoo_use_api: bool,
}

Builder pattern for the input argument into the main email_exists function.

Fields

to_emails: Vec<String>

The email to validate.

from_email: String

Email to use in the MAIL FROM: SMTP command.

Defaults to "user@example.org".

hello_name: String

Name to use in the EHLO: SMTP command.

Defaults to "localhost" (note: "localhost" is not a FQDN).

proxy: Option<CheckEmailInputProxy>

Perform the email verification via a specified proxy. The usage of a proxy is optional.

smtp_timeout: Option<Duration>

Add optional timeout for the SMTP verification step.

yahoo_use_api: bool

For Yahoo email addresses, use Yahoo's API instead of connecting directly to their SMTP servers.

Defaults to true.

Implementations

impl CheckEmailInput[src]

pub fn new(to_emails: Vec<String>) -> CheckEmailInput[src]

Create a new CheckEmailInput.

pub fn from_email(&mut self, email: String) -> &mut CheckEmailInput[src]

Set the email to use in the MAIL FROM: SMTP command.

pub fn hello_name(&mut self, name: String) -> &mut CheckEmailInput[src]

Set the name to use in the EHLO: SMTP command.

pub fn proxy(
    &mut self,
    proxy_host: String,
    proxy_port: u16
) -> &mut CheckEmailInput
[src]

Use the specified proxy to perform email verification.

pub fn smtp_timeout(&mut self, duration: Duration) -> &mut CheckEmailInput[src]

Add optional timeout for the SMTP verification step.

pub fn yahoo_use_api(&mut self, use_api: bool) -> &mut CheckEmailInput[src]

Set whether to use Yahoo's API or connecting directly to their SMTP servers.

Trait Implementations

impl Clone for CheckEmailInput[src]

impl Debug for CheckEmailInput[src]

impl Default for CheckEmailInput[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,