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
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