pub struct InputContactMessageContent {
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: String
Contact’s phone number
first_name: String
Contact’s first name
last_name: Option<String>
Optional. Contact’s last name
vcard: Option<String>
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
Implementations§
Trait Implementations§
Source§impl Clone for InputContactMessageContent
impl Clone for InputContactMessageContent
Source§fn clone(&self) -> InputContactMessageContent
fn clone(&self) -> InputContactMessageContent
Returns a duplicate 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 InputContactMessageContent
impl Debug for InputContactMessageContent
Source§impl<'de> Deserialize<'de> for InputContactMessageContent
impl<'de> Deserialize<'de> for InputContactMessageContent
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 InputContactMessageContent
impl RefUnwindSafe for InputContactMessageContent
impl Send for InputContactMessageContent
impl Sync for InputContactMessageContent
impl Unpin for InputContactMessageContent
impl UnwindSafe for InputContactMessageContent
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