Struct rust_tdlib::types::IdentityDocument
source · [−]pub struct IdentityDocument { /* private fields */ }Expand description
An identity document
Implementations
sourceimpl 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
sourceimpl AsRef<IdentityDocument> for IdentityDocument
impl AsRef<IdentityDocument> for IdentityDocument
sourcefn as_ref(&self) -> &IdentityDocument
fn as_ref(&self) -> &IdentityDocument
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for IdentityDocument
impl Clone for IdentityDocument
sourcefn clone(&self) -> IdentityDocument
fn clone(&self) -> IdentityDocument
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for IdentityDocument
impl Debug for IdentityDocument
sourceimpl Default for IdentityDocument
impl Default for IdentityDocument
sourcefn default() -> IdentityDocument
fn default() -> IdentityDocument
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for IdentityDocument
impl<'de> Deserialize<'de> for IdentityDocument
sourcefn 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
sourceimpl Serialize for IdentityDocument
impl Serialize for IdentityDocument
Auto Trait Implementations
impl RefUnwindSafe for IdentityDocument
impl Send for IdentityDocument
impl Sync for IdentityDocument
impl Unpin for IdentityDocument
impl UnwindSafe for IdentityDocument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more