1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use serde::Deserialize;
/// Represents [`EncryptedCredentials`][docs].
///
/// [docs]: https://core.telegram.org/bots/api#encryptedcredentials
#[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)]
#[non_exhaustive]
pub struct Credentials {
/// Base64-encoded JSON-serialized data required for decryption.
pub data: String,
/// Base64-encoded hash for data authentication.
pub hash: String,
/// Base64-encoded secret required for data decryption.
pub secret: String,
}