Enum vsmtp_common::auth::Credentials
pub enum Credentials {
Verify {
authid: String,
authpass: String,
},
AnonymousToken {
token: String,
},
}Expand description
The credentials send by the client, not necessarily the right one
Variants§
Verify
the pair will be sent and verified by a third party
AnonymousToken
verify the token send by anonymous mechanism
Trait Implementations§
§impl Clone for Credentials
impl Clone for Credentials
§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
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 more§impl Debug for Credentials
impl Debug for Credentials
§impl<'de> Deserialize<'de> for Credentials
impl<'de> Deserialize<'de> for Credentials
§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
§impl Display for Credentials
impl Display for Credentials
§impl PartialEq<Credentials> for Credentials
impl PartialEq<Credentials> for Credentials
§fn eq(&self, other: &Credentials) -> bool
fn eq(&self, other: &Credentials) -> bool
This method tests for
self and other values to be equal, and is used
by ==.