pub struct InputMessageContentVenue {
pub latitude: f64,
pub longitude: f64,
pub title: String,
pub address: String,
pub foursquare_id: Option<String>,
pub foursquare_type: Option<String>,
pub google_place_id: Option<String>,
pub google_place_type: Option<String>,
}
Expand description
Represents the content of a venue message to be sent as the result of an inline query.
Fields§
§latitude: f64
Latitude of the venue in degrees.
longitude: f64
Longitude of the venue in degrees.
title: String
Name of the venue.
address: String
Address of the venue.
foursquare_id: Option<String>
Foursquare identifier of the venue, if known.
foursquare_type: Option<String>
Foursquare type of the venue, if known. (For example,
arts_entertainment/default
, arts_entertainment/aquarium
or food/icecream
.)
google_place_id: Option<String>
Google Places identifier of the venue.
google_place_type: Option<String>
Google Places type of the venue. (See supported types.)
Implementations§
Source§impl InputMessageContentVenue
impl InputMessageContentVenue
pub fn new<S1, S2>( latitude: f64, longitude: f64, title: S1, address: S2, ) -> Self
pub fn latitude(self, val: f64) -> Self
pub fn longitude(self, val: f64) -> Self
pub fn title<S>(self, val: S) -> Self
pub fn address<S>(self, val: S) -> Self
pub fn foursquare_id<S>(self, val: S) -> Self
pub fn foursquare_type<S>(self, val: S) -> Self
Trait Implementations§
Source§impl Clone for InputMessageContentVenue
impl Clone for InputMessageContentVenue
Source§fn clone(&self) -> InputMessageContentVenue
fn clone(&self) -> InputMessageContentVenue
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 Debug for InputMessageContentVenue
impl Debug for InputMessageContentVenue
Source§impl<'de> Deserialize<'de> for InputMessageContentVenue
impl<'de> Deserialize<'de> for InputMessageContentVenue
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 InputMessageContentVenue
impl PartialEq for InputMessageContentVenue
Source§impl Serialize for InputMessageContentVenue
impl Serialize for InputMessageContentVenue
impl StructuralPartialEq for InputMessageContentVenue
Auto Trait Implementations§
impl Freeze for InputMessageContentVenue
impl RefUnwindSafe for InputMessageContentVenue
impl Send for InputMessageContentVenue
impl Sync for InputMessageContentVenue
impl Unpin for InputMessageContentVenue
impl UnwindSafe for InputMessageContentVenue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more