Struct rtdlib::types::SetPassportElement [−][src]
pub struct SetPassportElement { /* fields omitted */ }
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
Performs the conversion.
Returns the “default value” for a type. Read more
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 RefUnwindSafe for SetPassportElement
impl Send for SetPassportElement
impl Sync for SetPassportElement
impl Unpin for SetPassportElement
impl UnwindSafe for SetPassportElement
Blanket Implementations
Mutably borrows from an owned value. Read more