[][src]Enum melib::smtp::SmtpAuth

pub enum SmtpAuth {
    None,
    Auto {
        username: String,
        password: Password,
        require_auth: bool,
        auth_type: SmtpAuthType,
    },
    XOAuth2 {
        token_command: String,
        require_auth: bool,
    },
}

Kind of server authentication the client should attempt

Variants

None
Auto

Fields of Auto

username: Stringpassword: Passwordrequire_auth: boolauth_type: SmtpAuthType
XOAuth2

Fields of XOAuth2

token_command: Stringrequire_auth: bool

Implementations

impl SmtpAuth[src]

fn require_auth(&self) -> bool[src]

Trait Implementations

impl Clone for SmtpAuth[src]

impl Debug for SmtpAuth[src]

impl<'de> Deserialize<'de> for SmtpAuth[src]

impl PartialEq<SmtpAuth> for SmtpAuth[src]

impl Serialize for SmtpAuth[src]

impl StructuralPartialEq for SmtpAuth[src]

Auto Trait Implementations

impl RefUnwindSafe for SmtpAuth

impl Send for SmtpAuth

impl Sync for SmtpAuth

impl Unpin for SmtpAuth

impl UnwindSafe for SmtpAuth

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> 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>, 

impl<T> WithSubscriber for T[src]