Struct rust_tdlib::types::SetPassportElement
source · pub struct SetPassportElement { /* private fields */ }
Expand description
Adds an element to the user’s Telegram Passport. May return an error with a message “PHONE_VERIFICATION_NEEDED” or “EMAIL_VERIFICATION_NEEDED” if the chosen phone number or the chosen email address must be verified first
Implementations§
Trait Implementations§
source§impl AsRef<SetPassportElement> for SetPassportElement
impl AsRef<SetPassportElement> for SetPassportElement
source§fn as_ref(&self) -> &SetPassportElement
fn as_ref(&self) -> &SetPassportElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SetPassportElement
impl Clone for SetPassportElement
source§fn clone(&self) -> SetPassportElement
fn clone(&self) -> SetPassportElement
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 SetPassportElement
impl Debug for SetPassportElement
source§impl Default for SetPassportElement
impl Default for SetPassportElement
source§fn default() -> SetPassportElement
fn default() -> SetPassportElement
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetPassportElement
impl<'de> Deserialize<'de> for SetPassportElement
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