Struct rust_tdlib::types::PassportElementIdentityCard
source · pub struct PassportElementIdentityCard { /* private fields */ }
Expand description
A Telegram Passport element containing the user’s identity card
Implementations§
source§impl PassportElementIdentityCard
impl PassportElementIdentityCard
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PassportElementIdentityCardBuilder
pub fn identity_card(&self) -> &IdentityDocument
Trait Implementations§
source§impl AsRef<PassportElementIdentityCard> for PassportElementIdentityCard
impl AsRef<PassportElementIdentityCard> for PassportElementIdentityCard
source§fn as_ref(&self) -> &PassportElementIdentityCard
fn as_ref(&self) -> &PassportElementIdentityCard
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PassportElementIdentityCard
impl Clone for PassportElementIdentityCard
source§fn clone(&self) -> PassportElementIdentityCard
fn clone(&self) -> PassportElementIdentityCard
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 PassportElementIdentityCard
impl Debug for PassportElementIdentityCard
source§impl Default for PassportElementIdentityCard
impl Default for PassportElementIdentityCard
source§fn default() -> PassportElementIdentityCard
fn default() -> PassportElementIdentityCard
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PassportElementIdentityCard
impl<'de> Deserialize<'de> for PassportElementIdentityCard
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