Struct lettre::smtp::commands::AuthCommand
source · pub struct AuthCommand { /* private fields */ }
Expand description
AUTH command
Implementations
sourceimpl 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
sourceimpl Clone for AuthCommand
impl Clone for AuthCommand
sourcefn clone(&self) -> AuthCommand
fn clone(&self) -> AuthCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AuthCommand
impl Debug for AuthCommand
sourceimpl<'de> Deserialize<'de> for AuthCommand
impl<'de> Deserialize<'de> for AuthCommand
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
sourceimpl Display for AuthCommand
impl Display for AuthCommand
sourceimpl PartialEq<AuthCommand> for AuthCommand
impl PartialEq<AuthCommand> for AuthCommand
sourcefn eq(&self, other: &AuthCommand) -> bool
fn eq(&self, other: &AuthCommand) -> bool
sourceimpl Serialize for AuthCommand
impl Serialize for AuthCommand
impl StructuralPartialEq for AuthCommand
Auto Trait Implementations
impl RefUnwindSafe for AuthCommand
impl Send for AuthCommand
impl Sync for AuthCommand
impl Unpin for AuthCommand
impl UnwindSafe for AuthCommand
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