Enum lettre::smtp::authentication::Mechanism
source · pub enum Mechanism {
Plain,
Login,
Xoauth2,
}
Expand description
Represents authentication mechanisms
Variants
Plain
PLAIN authentication mechanism RFC 4616: https://tools.ietf.org/html/rfc4616
Login
LOGIN authentication mechanism Obsolete but needed for some providers (like office365) https://www.ietf.org/archive/id/draft-murchison-sasl-login-00.txt
Xoauth2
Non-standard XOAUTH2 mechanism https://developers.google.com/gmail/imap/xoauth2-protocol
Implementations
sourceimpl Mechanism
impl Mechanism
sourcepub fn supports_initial_response(&self) -> bool
pub fn supports_initial_response(&self) -> bool
Does the mechanism supports initial response
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Mechanism
impl<'de> Deserialize<'de> for Mechanism
sourcefn 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
impl Copy for Mechanism
impl Eq for Mechanism
impl StructuralEq for Mechanism
impl StructuralPartialEq for Mechanism
Auto Trait Implementations
impl RefUnwindSafe for Mechanism
impl Send for Mechanism
impl Sync for Mechanism
impl Unpin for Mechanism
impl UnwindSafe for Mechanism
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more