pub struct InputInlineQueryResultContact {
pub id: String,
pub contact: Contact,
pub thumbnail_url: String,
pub thumbnail_width: i32,
pub thumbnail_height: i32,
pub reply_markup: Option<ReplyMarkup>,
pub input_message_content: InputMessageContent,
}
Expand description
Represents a user contact
Fields§
§id: String
Unique identifier of the query result
contact: Contact
User contact
thumbnail_url: String
URL of the result thumbnail, if it exists
thumbnail_width: i32
Thumbnail width, if known
thumbnail_height: i32
Thumbnail height, if known
reply_markup: Option<ReplyMarkup>
The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null
input_message_content: InputMessageContent
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact
Trait Implementations§
Source§impl Clone for InputInlineQueryResultContact
impl Clone for InputInlineQueryResultContact
Source§fn clone(&self) -> InputInlineQueryResultContact
fn clone(&self) -> InputInlineQueryResultContact
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<'de> Deserialize<'de> for InputInlineQueryResultContact
impl<'de> Deserialize<'de> for InputInlineQueryResultContact
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 for InputInlineQueryResultContact
impl PartialEq for InputInlineQueryResultContact
Source§fn eq(&self, other: &InputInlineQueryResultContact) -> bool
fn eq(&self, other: &InputInlineQueryResultContact) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InputInlineQueryResultContact
Auto Trait Implementations§
impl Freeze for InputInlineQueryResultContact
impl RefUnwindSafe for InputInlineQueryResultContact
impl Send for InputInlineQueryResultContact
impl Sync for InputInlineQueryResultContact
impl Unpin for InputInlineQueryResultContact
impl UnwindSafe for InputInlineQueryResultContact
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