Struct teloxide::types::EncryptedCredentials
source · Expand description
Contains data required for decrypting and authenticating
EncryptedPassportElement
.
See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
Fields§
§data: String
Base64-encoded encrypted JSON-serialized data with unique user’s
payload, data hashes and secrets required for
EncryptedPassportElement
decryption and authentication.
hash: String
Base64-encoded data hash for data authentication.
secret: String
A base64-encoded secret, encrypted with the bot’s public RSA key, required for data decryption.
Trait Implementations§
source§impl Clone for EncryptedCredentials
impl Clone for EncryptedCredentials
source§fn clone(&self) -> EncryptedCredentials
fn clone(&self) -> EncryptedCredentials
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 EncryptedCredentials
impl Debug for EncryptedCredentials
source§impl<'de> Deserialize<'de> for EncryptedCredentials
impl<'de> Deserialize<'de> for EncryptedCredentials
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EncryptedCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EncryptedCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for EncryptedCredentials
impl Hash for EncryptedCredentials
source§impl PartialEq<EncryptedCredentials> for EncryptedCredentials
impl PartialEq<EncryptedCredentials> for EncryptedCredentials
source§fn eq(&self, other: &EncryptedCredentials) -> bool
fn eq(&self, other: &EncryptedCredentials) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EncryptedCredentials
impl Serialize for EncryptedCredentials
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 EncryptedCredentials
impl StructuralEq for EncryptedCredentials
impl StructuralPartialEq for EncryptedCredentials
Auto Trait Implementations§
impl RefUnwindSafe for EncryptedCredentials
impl Send for EncryptedCredentials
impl Sync for EncryptedCredentials
impl Unpin for EncryptedCredentials
impl UnwindSafe for EncryptedCredentials
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.