pub struct PassportElementUtilityBill { /* private fields */ }
Expand description
A Telegram Passport element containing the user’s utility bill
Implementations§
Source§impl PassportElementUtilityBill
impl PassportElementUtilityBill
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PassportElementUtilityBillBuilder
pub fn utility_bill(&self) -> &PersonalDocument
Trait Implementations§
Source§impl AsRef<PassportElementUtilityBill> for PassportElementUtilityBill
impl AsRef<PassportElementUtilityBill> for PassportElementUtilityBill
Source§fn as_ref(&self) -> &PassportElementUtilityBill
fn as_ref(&self) -> &PassportElementUtilityBill
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PassportElementUtilityBill
impl Clone for PassportElementUtilityBill
Source§fn clone(&self) -> PassportElementUtilityBill
fn clone(&self) -> PassportElementUtilityBill
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 PassportElementUtilityBill
impl Debug for PassportElementUtilityBill
Source§impl Default for PassportElementUtilityBill
impl Default for PassportElementUtilityBill
Source§fn default() -> PassportElementUtilityBill
fn default() -> PassportElementUtilityBill
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PassportElementUtilityBill
impl<'de> Deserialize<'de> for PassportElementUtilityBill
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
impl TDPassportElement for PassportElementUtilityBill
Auto Trait Implementations§
impl Freeze for PassportElementUtilityBill
impl RefUnwindSafe for PassportElementUtilityBill
impl Send for PassportElementUtilityBill
impl Sync for PassportElementUtilityBill
impl Unpin for PassportElementUtilityBill
impl UnwindSafe for PassportElementUtilityBill
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