Struct frankenstein::objects::InlineQueryResultLocation
source · [−]pub struct InlineQueryResultLocation {Show 13 fields
pub id: String,
pub latitude: f64,
pub longitude: f64,
pub title: String,
pub horizontal_accuracy: Option<f64>,
pub live_period: Option<u32>,
pub heading: Option<u16>,
pub proximity_alert_radius: Option<u32>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
pub thumb_url: Option<String>,
pub thumb_width: Option<u32>,
pub thumb_height: Option<u32>,
}
Fields
id: String
latitude: f64
longitude: f64
title: String
horizontal_accuracy: Option<f64>
live_period: Option<u32>
heading: Option<u16>
proximity_alert_radius: Option<u32>
reply_markup: Option<InlineKeyboardMarkup>
input_message_content: Option<InputMessageContent>
thumb_url: Option<String>
thumb_width: Option<u32>
thumb_height: Option<u32>
Implementations
sourceimpl InlineQueryResultLocation
impl InlineQueryResultLocation
sourcepub fn builder(
) -> InlineQueryResultLocationBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> InlineQueryResultLocationBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building InlineQueryResultLocation
.
On the builder, call .id(...)
, .latitude(...)
, .longitude(...)
, .title(...)
, .horizontal_accuracy(...)
(optional), .live_period(...)
(optional), .heading(...)
(optional), .proximity_alert_radius(...)
(optional), .reply_markup(...)
(optional), .input_message_content(...)
(optional), .thumb_url(...)
(optional), .thumb_width(...)
(optional), .thumb_height(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InlineQueryResultLocation
.
Trait Implementations
sourceimpl Clone for InlineQueryResultLocation
impl Clone for InlineQueryResultLocation
sourcefn clone(&self) -> InlineQueryResultLocation
fn clone(&self) -> InlineQueryResultLocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InlineQueryResultLocation
impl Debug for InlineQueryResultLocation
sourceimpl<'de> Deserialize<'de> for InlineQueryResultLocation
impl<'de> Deserialize<'de> for InlineQueryResultLocation
sourcefn 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
sourceimpl PartialEq<InlineQueryResultLocation> for InlineQueryResultLocation
impl PartialEq<InlineQueryResultLocation> for InlineQueryResultLocation
sourcefn eq(&self, other: &InlineQueryResultLocation) -> bool
fn eq(&self, other: &InlineQueryResultLocation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InlineQueryResultLocation) -> bool
fn ne(&self, other: &InlineQueryResultLocation) -> bool
This method tests for !=
.
sourceimpl Serialize for InlineQueryResultLocation
impl Serialize for InlineQueryResultLocation
impl StructuralPartialEq for InlineQueryResultLocation
Auto Trait Implementations
impl RefUnwindSafe for InlineQueryResultLocation
impl Send for InlineQueryResultLocation
impl Sync for InlineQueryResultLocation
impl Unpin for InlineQueryResultLocation
impl UnwindSafe for InlineQueryResultLocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more