Struct teloxide::types::InputMessageContentVenue
source · 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
) -> InputMessageContentVenuewhere
S1: Into<String>,
S2: Into<String>,
pub fn latitude(self, val: f64) -> InputMessageContentVenue
pub fn longitude(self, val: f64) -> InputMessageContentVenue
pub fn title<S>(self, val: S) -> InputMessageContentVenuewhere
S: Into<String>,
pub fn address<S>(self, val: S) -> InputMessageContentVenuewhere
S: Into<String>,
pub fn foursquare_id<S>(self, val: S) -> InputMessageContentVenuewhere
S: Into<String>,
pub fn foursquare_type<S>(self, val: S) -> InputMessageContentVenuewhere
S: Into<String>,
Trait Implementations§
source§impl Clone for InputMessageContentVenue
impl Clone for InputMessageContentVenue
source§fn clone(&self) -> InputMessageContentVenue
fn clone(&self) -> InputMessageContentVenue
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 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<InputMessageContentVenue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InputMessageContentVenue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<InputMessageContentVenue> for InputMessageContentVenue
impl PartialEq<InputMessageContentVenue> for InputMessageContentVenue
source§fn eq(&self, other: &InputMessageContentVenue) -> bool
fn eq(&self, other: &InputMessageContentVenue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InputMessageContentVenue
impl Serialize for InputMessageContentVenue
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more