pub struct PassportSuitableElement {
pub type: PassportElementType,
pub is_selfie_required: bool,
pub is_translation_required: bool,
pub is_native_name_required: bool,
}
Expand description
Contains information about a Telegram Passport element that was requested by a service
Fields§
§type: PassportElementType
Type of the element
is_selfie_required: bool
True, if a selfie is required with the identity document
is_translation_required: bool
True, if a certified English translation is required with the document
is_native_name_required: bool
True, if personal details must include the user’s name in the language of their country of residence
Trait Implementations§
Source§impl Clone for PassportSuitableElement
impl Clone for PassportSuitableElement
Source§fn clone(&self) -> PassportSuitableElement
fn clone(&self) -> PassportSuitableElement
Returns a duplicate 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 PassportSuitableElement
impl Debug for PassportSuitableElement
Source§impl<'de> Deserialize<'de> for PassportSuitableElement
impl<'de> Deserialize<'de> for PassportSuitableElement
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
Source§impl PartialEq for PassportSuitableElement
impl PartialEq for PassportSuitableElement
Source§impl Serialize for PassportSuitableElement
impl Serialize for PassportSuitableElement
impl StructuralPartialEq for PassportSuitableElement
Auto Trait Implementations§
impl Freeze for PassportSuitableElement
impl RefUnwindSafe for PassportSuitableElement
impl Send for PassportSuitableElement
impl Sync for PassportSuitableElement
impl Unpin for PassportSuitableElement
impl UnwindSafe for PassportSuitableElement
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