Struct rust_tdlib::types::IdentityDocument
source · pub struct IdentityDocument { /* private fields */ }
Expand description
An identity document
Implementations§
source§impl IdentityDocument
impl IdentityDocument
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> IdentityDocumentBuilder
pub fn number(&self) -> &String
pub fn expiry_date(&self) -> &Option<Date>
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>
Trait Implementations§
source§impl AsRef<IdentityDocument> for IdentityDocument
impl AsRef<IdentityDocument> for IdentityDocument
source§fn as_ref(&self) -> &IdentityDocument
fn as_ref(&self) -> &IdentityDocument
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for IdentityDocument
impl Clone for IdentityDocument
source§fn clone(&self) -> IdentityDocument
fn clone(&self) -> IdentityDocument
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 IdentityDocument
impl Debug for IdentityDocument
source§impl Default for IdentityDocument
impl Default for IdentityDocument
source§fn default() -> IdentityDocument
fn default() -> IdentityDocument
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for IdentityDocument
impl<'de> Deserialize<'de> for IdentityDocument
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