Struct async_smtp::smtp::commands::AuthCommand
source · pub struct AuthCommand { /* private fields */ }
Expand description
AUTH command
Implementations§
source§impl AuthCommand
impl AuthCommand
sourcepub fn new(
mechanism: Mechanism,
credentials: Credentials,
challenge: Option<String>
) -> Result<AuthCommand, Error>
pub fn new(
mechanism: Mechanism,
credentials: Credentials,
challenge: Option<String>
) -> Result<AuthCommand, Error>
Creates an AUTH command (from a challenge if provided)
sourcepub fn new_from_response(
mechanism: Mechanism,
credentials: Credentials,
response: &Response
) -> Result<AuthCommand, Error>
pub fn new_from_response(
mechanism: Mechanism,
credentials: Credentials,
response: &Response
) -> Result<AuthCommand, Error>
Creates an AUTH command from a response that needs to be a valid challenge (with 334 response code)
Trait Implementations§
source§impl Clone for AuthCommand
impl Clone for AuthCommand
source§fn clone(&self) -> AuthCommand
fn clone(&self) -> AuthCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AuthCommand
impl Debug for AuthCommand
source§impl<'de> Deserialize<'de> for AuthCommand
impl<'de> Deserialize<'de> for AuthCommand
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
source§impl Display for AuthCommand
impl Display for AuthCommand
source§impl PartialEq<AuthCommand> for AuthCommand
impl PartialEq<AuthCommand> for AuthCommand
source§fn eq(&self, other: &AuthCommand) -> bool
fn eq(&self, other: &AuthCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.