Struct teloxide::types::EncryptedPassportElement
source · pub struct EncryptedPassportElement {
pub hash: String,
pub kind: EncryptedPassportElementKind,
}
Expand description
Contains information about documents or other Telegram Passport elements shared with the bot by the user.
Fields§
§hash: String
Base64-encoded element hash for using in
PassportElementErrorKind::Unspecified
.
kind: EncryptedPassportElementKind
Trait Implementations§
source§impl Clone for EncryptedPassportElement
impl Clone for EncryptedPassportElement
source§fn clone(&self) -> EncryptedPassportElement
fn clone(&self) -> EncryptedPassportElement
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 EncryptedPassportElement
impl Debug for EncryptedPassportElement
source§impl<'de> Deserialize<'de> for EncryptedPassportElement
impl<'de> Deserialize<'de> for EncryptedPassportElement
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EncryptedPassportElement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EncryptedPassportElement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for EncryptedPassportElement
impl Hash for EncryptedPassportElement
source§impl PartialEq<EncryptedPassportElement> for EncryptedPassportElement
impl PartialEq<EncryptedPassportElement> for EncryptedPassportElement
source§fn eq(&self, other: &EncryptedPassportElement) -> bool
fn eq(&self, other: &EncryptedPassportElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EncryptedPassportElement
impl Serialize for EncryptedPassportElement
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 Eq for EncryptedPassportElement
impl StructuralEq for EncryptedPassportElement
impl StructuralPartialEq for EncryptedPassportElement
Auto Trait Implementations§
impl RefUnwindSafe for EncryptedPassportElement
impl Send for EncryptedPassportElement
impl Sync for EncryptedPassportElement
impl Unpin for EncryptedPassportElement
impl UnwindSafe for EncryptedPassportElement
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.