pub struct InlineQueryResultContact {
pub id: String,
pub phone_number: String,
pub first_name: String,
pub last_name: String,
pub vcard: String,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
pub thumb_url: Option<String>,
pub thumb_width: Option<i64>,
pub thumb_height: Option<i64>,
}Fields§
§id: StringUnique identifier for this result, 1-64 Bytes
phone_number: StringContact’s phone number
first_name: StringContact’s first name
last_name: StringContact’s last name
vcard: StringAdditional data about the contact in the form of a vCard, 0-2048 bytes
reply_markup: Option<InlineKeyboardMarkup>Inline keyboard attached to the message
input_message_content: Option<InputMessageContent>Content of the message to be sent
thumb_url: Option<String>Url of the thumbnail for the result
thumb_width: Option<i64>Thumbnail width
thumb_height: Option<i64>Thumbnail height
Trait Implementations§
Source§impl Debug for InlineQueryResultContact
impl Debug for InlineQueryResultContact
Source§impl From<InlineQueryResultContact> for InlineQueryResult
impl From<InlineQueryResultContact> for InlineQueryResult
Source§fn from(contact: InlineQueryResultContact) -> InlineQueryResult
fn from(contact: InlineQueryResultContact) -> InlineQueryResult
Converts to this type from the input type.
Source§impl Serialize for InlineQueryResultContact
impl Serialize for InlineQueryResultContact
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for InlineQueryResultContact
impl RefUnwindSafe for InlineQueryResultContact
impl Send for InlineQueryResultContact
impl Sync for InlineQueryResultContact
impl Unpin for InlineQueryResultContact
impl UnwindSafe for InlineQueryResultContact
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