pub struct InputIdentityDocument { /* private fields */ }
Expand description
An identity document to be saved to Telegram Passport
Implementations§
Source§impl 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§
Source§impl AsRef<InputIdentityDocument> for InputIdentityDocument
impl AsRef<InputIdentityDocument> for InputIdentityDocument
Source§fn as_ref(&self) -> &InputIdentityDocument
fn as_ref(&self) -> &InputIdentityDocument
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for InputIdentityDocument
impl Clone for InputIdentityDocument
Source§fn clone(&self) -> InputIdentityDocument
fn clone(&self) -> InputIdentityDocument
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 InputIdentityDocument
impl Debug for InputIdentityDocument
Source§impl Default for InputIdentityDocument
impl Default for InputIdentityDocument
Source§fn default() -> InputIdentityDocument
fn default() -> InputIdentityDocument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputIdentityDocument
impl<'de> Deserialize<'de> for InputIdentityDocument
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
Auto Trait Implementations§
impl Freeze for InputIdentityDocument
impl RefUnwindSafe for InputIdentityDocument
impl Send for InputIdentityDocument
impl Sync for InputIdentityDocument
impl Unpin for InputIdentityDocument
impl UnwindSafe for InputIdentityDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more