Struct carapax::types::EncryptedPassportElementEmail
source · pub struct EncryptedPassportElementEmail {
pub email: String,
pub hash: String,
}
Expand description
Represents an E-Mail.
Fields§
§email: String
A user’s verified email address.
hash: String
A base64-encoded element hash for
using in crate::types::PassportElementError::unspecified
.
Implementations§
Trait Implementations§
source§impl Clone for EncryptedPassportElementEmail
impl Clone for EncryptedPassportElementEmail
source§fn clone(&self) -> EncryptedPassportElementEmail
fn clone(&self) -> EncryptedPassportElementEmail
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<'de> Deserialize<'de> for EncryptedPassportElementEmail
impl<'de> Deserialize<'de> for EncryptedPassportElementEmail
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EncryptedPassportElementEmail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EncryptedPassportElementEmail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<EncryptedPassportElementEmail> for EncryptedPassportElement
impl From<EncryptedPassportElementEmail> for EncryptedPassportElement
source§fn from(original: EncryptedPassportElementEmail) -> EncryptedPassportElement
fn from(original: EncryptedPassportElementEmail) -> EncryptedPassportElement
Converts to this type from the input type.
source§impl PartialEq for EncryptedPassportElementEmail
impl PartialEq for EncryptedPassportElementEmail
source§fn eq(&self, other: &EncryptedPassportElementEmail) -> bool
fn eq(&self, other: &EncryptedPassportElementEmail) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EncryptedPassportElementEmail
impl PartialOrd for EncryptedPassportElementEmail
source§fn partial_cmp(&self, other: &EncryptedPassportElementEmail) -> Option<Ordering>
fn partial_cmp(&self, other: &EncryptedPassportElementEmail) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for EncryptedPassportElementEmail
impl Serialize for EncryptedPassportElementEmail
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EncryptedPassportElementEmail
Auto Trait Implementations§
impl Freeze for EncryptedPassportElementEmail
impl RefUnwindSafe for EncryptedPassportElementEmail
impl Send for EncryptedPassportElementEmail
impl Sync for EncryptedPassportElementEmail
impl Unpin for EncryptedPassportElementEmail
impl UnwindSafe for EncryptedPassportElementEmail
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more