Struct tdlib_types::types::PassportSuitableElement
source · 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
sourceimpl Clone for PassportSuitableElement
impl Clone for PassportSuitableElement
sourcefn clone(&self) -> PassportSuitableElement
fn clone(&self) -> PassportSuitableElement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PassportSuitableElement
impl Debug for PassportSuitableElement
sourceimpl<'de> Deserialize<'de> for PassportSuitableElement
impl<'de> Deserialize<'de> for PassportSuitableElement
sourcefn 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
sourceimpl Serialize for PassportSuitableElement
impl Serialize for PassportSuitableElement
Auto Trait Implementations
impl RefUnwindSafe for PassportSuitableElement
impl Send for PassportSuitableElement
impl Sync for PassportSuitableElement
impl Unpin for PassportSuitableElement
impl UnwindSafe for PassportSuitableElement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more