Struct tgbot::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<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 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 moreimpl 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