pub struct InputPassportElementDriverLicense { /* private fields */ }
Expand description
A Telegram Passport element to be saved containing the user’s driver license
Implementations§
Source§impl InputPassportElementDriverLicense
impl InputPassportElementDriverLicense
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> InputPassportElementDriverLicenseBuilder
pub fn driver_license(&self) -> &InputIdentityDocument
Trait Implementations§
Source§impl AsRef<InputPassportElementDriverLicense> for InputPassportElementDriverLicense
impl AsRef<InputPassportElementDriverLicense> for InputPassportElementDriverLicense
Source§fn as_ref(&self) -> &InputPassportElementDriverLicense
fn as_ref(&self) -> &InputPassportElementDriverLicense
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for InputPassportElementDriverLicense
impl Clone for InputPassportElementDriverLicense
Source§fn clone(&self) -> InputPassportElementDriverLicense
fn clone(&self) -> InputPassportElementDriverLicense
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 Default for InputPassportElementDriverLicense
impl Default for InputPassportElementDriverLicense
Source§fn default() -> InputPassportElementDriverLicense
fn default() -> InputPassportElementDriverLicense
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputPassportElementDriverLicense
impl<'de> Deserialize<'de> for InputPassportElementDriverLicense
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
impl TDInputPassportElement for InputPassportElementDriverLicense
Auto Trait Implementations§
impl Freeze for InputPassportElementDriverLicense
impl RefUnwindSafe for InputPassportElementDriverLicense
impl Send for InputPassportElementDriverLicense
impl Sync for InputPassportElementDriverLicense
impl Unpin for InputPassportElementDriverLicense
impl UnwindSafe for InputPassportElementDriverLicense
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