Struct telexide::api::types::InlineQueryResultContact
source · pub struct InlineQueryResultContact {
pub id: String,
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub vcard: Option<String>,
pub input_message_content: Option<InputMessageContent>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub thumbnail_url: Option<String>,
pub thumbnail_width: Option<i64>,
pub thumbnail_height: Option<i64>,
}
Expand description
Represents a contact with a phone number. By default, this contact will be
sent by the user. Alternatively, you can use input_message_content
to send
a message with the specified content instead of the contact.
Fields§
§id: String
Unique identifier for this result, 1-64 bytes
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
input_message_content: Option<InputMessageContent>
Content of the message to be sent instead of the venue
reply_markup: Option<InlineKeyboardMarkup>
Inline keyboard attached to the message
thumbnail_url: Option<String>
Url of the thumbnail for the result
thumbnail_width: Option<i64>
Thumbnail width
thumbnail_height: Option<i64>
Thumbnail height
Implementations§
source§impl InlineQueryResultContact
impl InlineQueryResultContact
pub fn new( id: impl ToString, phone_number: impl ToString, first_name: impl ToString ) -> Self
pub fn set_last_name(&mut self, last_name: impl ToString) -> &mut Self
pub fn set_vcard(&mut self, vcard: impl ToString) -> &mut Self
pub fn set_input_message_content( &mut self, input_message_content: InputMessageContent ) -> &mut Self
pub fn set_reply_markup( &mut self, reply_markup: InlineKeyboardMarkup ) -> &mut Self
pub fn set_thumbnail_url(&mut self, thumbnail_url: impl ToString) -> &mut Self
pub fn set_thumbnail_width(&mut self, thumbnail_width: i64) -> &mut Self
pub fn set_thumbnail_height(&mut self, thumbnail_height: i64) -> &mut Self
Trait Implementations§
source§impl Clone for InlineQueryResultContact
impl Clone for InlineQueryResultContact
source§fn clone(&self) -> InlineQueryResultContact
fn clone(&self) -> InlineQueryResultContact
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 InlineQueryResultContact
impl Debug for InlineQueryResultContact
source§impl<'de> Deserialize<'de> for InlineQueryResultContact
impl<'de> Deserialize<'de> for InlineQueryResultContact
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 InlineQueryResultContact
impl PartialEq for InlineQueryResultContact
source§fn eq(&self, other: &InlineQueryResultContact) -> bool
fn eq(&self, other: &InlineQueryResultContact) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InlineQueryResultContact
impl Serialize for InlineQueryResultContact
impl StructuralPartialEq for InlineQueryResultContact
Auto Trait Implementations§
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