pub struct EncryptedCredentials {
pub data: String,
pub hash: String,
pub secret: String,
}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: StringBase64-encoded encrypted JSON-serialized data with unique user’s payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
hash: StringBase64-encoded data hash for data authentication
secret: StringBase64-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§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
Source§impl PartialEq for EncryptedCredentials
impl PartialEq for EncryptedCredentials
Source§impl Serialize for EncryptedCredentials
impl Serialize for EncryptedCredentials
impl StructuralPartialEq for EncryptedCredentials
Auto Trait Implementations§
impl Freeze for EncryptedCredentials
impl RefUnwindSafe for EncryptedCredentials
impl Send for EncryptedCredentials
impl Sync for EncryptedCredentials
impl Unpin for EncryptedCredentials
impl UnsafeUnpin for EncryptedCredentials
impl UnwindSafe for EncryptedCredentials
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