pub struct InputInlineQueryResultLocation {
pub id: String,
pub location: Location,
pub live_period: i32,
pub title: String,
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 point on the map
Fields§
§id: String
Unique identifier of the query result
location: Location
Location result
live_period: i32
Amount of time relative to the message sent time until the location can be updated, in seconds
title: String
Title of the result
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 InputInlineQueryResultLocation
impl Clone for InputInlineQueryResultLocation
Source§fn clone(&self) -> InputInlineQueryResultLocation
fn clone(&self) -> InputInlineQueryResultLocation
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 InputInlineQueryResultLocation
impl<'de> Deserialize<'de> for InputInlineQueryResultLocation
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 InputInlineQueryResultLocation
impl PartialEq for InputInlineQueryResultLocation
Source§fn eq(&self, other: &InputInlineQueryResultLocation) -> bool
fn eq(&self, other: &InputInlineQueryResultLocation) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InputInlineQueryResultLocation
Auto Trait Implementations§
impl Freeze for InputInlineQueryResultLocation
impl RefUnwindSafe for InputInlineQueryResultLocation
impl Send for InputInlineQueryResultLocation
impl Sync for InputInlineQueryResultLocation
impl Unpin for InputInlineQueryResultLocation
impl UnwindSafe for InputInlineQueryResultLocation
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