Struct rust_tdlib::types::EncryptedPassportElement
source · pub struct EncryptedPassportElement { /* private fields */ }
Expand description
Contains information about an encrypted Telegram Passport element; for bots only
Implementations§
source§impl EncryptedPassportElement
impl EncryptedPassportElement
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> EncryptedPassportElementBuilder
pub fn type_(&self) -> &PassportElementType
pub fn data(&self) -> &String
pub fn front_side(&self) -> &DatedFile
pub fn reverse_side(&self) -> &Option<DatedFile>
pub fn selfie(&self) -> &Option<DatedFile>
pub fn translation(&self) -> &Vec<DatedFile>
pub fn files(&self) -> &Vec<DatedFile>
pub fn value(&self) -> &String
pub fn hash(&self) -> &String
Trait Implementations§
source§impl AsRef<EncryptedPassportElement> for EncryptedPassportElement
impl AsRef<EncryptedPassportElement> for EncryptedPassportElement
source§fn as_ref(&self) -> &EncryptedPassportElement
fn as_ref(&self) -> &EncryptedPassportElement
Converts this type into a shared reference of the (usually inferred) input type.
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 Default for EncryptedPassportElement
impl Default for EncryptedPassportElement
source§fn default() -> EncryptedPassportElement
fn default() -> EncryptedPassportElement
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EncryptedPassportElement
impl<'de> Deserialize<'de> for EncryptedPassportElement
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