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