Struct rust_tdlib::types::PassportSuitableElement
source · pub struct PassportSuitableElement { /* private fields */ }
Expand description
Contains information about a Telegram Passport element that was requested by a service
Implementations§
source§impl PassportSuitableElement
impl PassportSuitableElement
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PassportSuitableElementBuilder
pub fn type_(&self) -> &PassportElementType
pub fn is_selfie_required(&self) -> bool
pub fn is_translation_required(&self) -> bool
pub fn is_native_name_required(&self) -> bool
Trait Implementations§
source§impl AsRef<PassportSuitableElement> for PassportSuitableElement
impl AsRef<PassportSuitableElement> for PassportSuitableElement
source§fn as_ref(&self) -> &PassportSuitableElement
fn as_ref(&self) -> &PassportSuitableElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PassportSuitableElement
impl Clone for PassportSuitableElement
source§fn clone(&self) -> PassportSuitableElement
fn clone(&self) -> PassportSuitableElement
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 PassportSuitableElement
impl Debug for PassportSuitableElement
source§impl Default for PassportSuitableElement
impl Default for PassportSuitableElement
source§fn default() -> PassportSuitableElement
fn default() -> PassportSuitableElement
Returns the “default value” for a type. Read more
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