Struct tg_botapi::api::InputContactMessageContent
source · 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>
Contact’s last name
vcard: Option<String>
Additional data about the contact in the form of a vCard, 0-2048 bytes
Implementations§
source§impl InputContactMessageContent
impl InputContactMessageContent
pub fn with_last_name(self, last_name: String) -> Self
pub fn with_vcard(self, vcard: String) -> Self
Trait Implementations§
source§impl Clone for InputContactMessageContent
impl Clone for InputContactMessageContent
source§fn clone(&self) -> InputContactMessageContent
fn clone(&self) -> InputContactMessageContent
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 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
source§impl From<InputContactMessageContent> for InputMessageContent
impl From<InputContactMessageContent> for InputMessageContent
source§fn from(o: InputContactMessageContent) -> Self
fn from(o: InputContactMessageContent) -> Self
Converts to this type from the input type.