Enum async_smtp::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§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mechanism
impl<'de> Deserialize<'de> for Mechanism
source§fn 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