Struct tg_botapi::api::EncryptedCredentials
source · pub struct EncryptedCredentials {
pub data: String,
pub hash: String,
pub secret: String,
}
Expand description
Describes 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
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<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