Struct rust_tdlib::types::InputIdentityDocument
source · [−]pub struct InputIdentityDocument { /* private fields */ }Expand description
An identity document to be saved to Telegram Passport
Implementations
sourceimpl InputIdentityDocument
impl InputIdentityDocument
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> InputIdentityDocumentBuilder
pub fn number(&self) -> &String
pub fn expiry_date(&self) -> &Date
pub fn front_side(&self) -> &InputFile
pub fn reverse_side(&self) -> &InputFile
pub fn selfie(&self) -> &InputFile
pub fn translation(&self) -> &Vec<InputFile>
Trait Implementations
sourceimpl AsRef<InputIdentityDocument> for InputIdentityDocument
impl AsRef<InputIdentityDocument> for InputIdentityDocument
sourcefn as_ref(&self) -> &InputIdentityDocument
fn as_ref(&self) -> &InputIdentityDocument
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for InputIdentityDocument
impl Clone for InputIdentityDocument
sourcefn clone(&self) -> InputIdentityDocument
fn clone(&self) -> InputIdentityDocument
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 InputIdentityDocument
impl Debug for InputIdentityDocument
sourceimpl Default for InputIdentityDocument
impl Default for InputIdentityDocument
sourcefn default() -> InputIdentityDocument
fn default() -> InputIdentityDocument
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InputIdentityDocument
impl<'de> Deserialize<'de> for InputIdentityDocument
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 InputIdentityDocument
impl Serialize for InputIdentityDocument
Auto Trait Implementations
impl RefUnwindSafe for InputIdentityDocument
impl Send for InputIdentityDocument
impl Sync for InputIdentityDocument
impl Unpin for InputIdentityDocument
impl UnwindSafe for InputIdentityDocument
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