Struct tg_flows::InputMessageContentContact
source · pub struct InputMessageContentContact {
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub vcard: Option<String>,
}Expand description
Represents the content of a contact message to be sent as the result of an inline query.
Fields§
§phone_number: StringContact’s phone number.
first_name: StringContact’s first name.
last_name: Option<String>Contact’s last name.
vcard: Option<String>Additional data about the contact in the form of a vCard, 0-2048 bytes.
Implementations§
source§impl InputMessageContentContact
impl InputMessageContentContact
pub fn new<S1, S2>(phone_number: S1, first_name: S2) -> Selfwhere S1: Into<String>, S2: Into<String>,
pub fn phone_number<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn first_name<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn last_name<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn vcard<S>(self, val: S) -> Selfwhere S: Into<String>,
Trait Implementations§
source§impl Clone for InputMessageContentContact
impl Clone for InputMessageContentContact
source§fn clone(&self) -> InputMessageContentContact
fn clone(&self) -> InputMessageContentContact
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 InputMessageContentContact
impl Debug for InputMessageContentContact
source§impl<'de> Deserialize<'de> for InputMessageContentContact
impl<'de> Deserialize<'de> for InputMessageContentContact
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<InputMessageContentContact> for InputMessageContentContact
impl PartialEq<InputMessageContentContact> for InputMessageContentContact
source§fn eq(&self, other: &InputMessageContentContact) -> bool
fn eq(&self, other: &InputMessageContentContact) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for InputMessageContentContact
Auto Trait Implementations§
impl RefUnwindSafe for InputMessageContentContact
impl Send for InputMessageContentContact
impl Sync for InputMessageContentContact
impl Unpin for InputMessageContentContact
impl UnwindSafe for InputMessageContentContact
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