Struct tg_botapi::api::InputVenueMessageContent
source · pub struct InputVenueMessageContent {
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 InputVenueMessageContent
impl InputVenueMessageContent
pub fn with_foursquare_id(self, foursquare_id: String) -> Self
pub fn with_foursquare_type(self, foursquare_type: String) -> Self
pub fn with_google_place_id(self, google_place_id: String) -> Self
pub fn with_google_place_type(self, google_place_type: String) -> Self
Trait Implementations§
source§impl Clone for InputVenueMessageContent
impl Clone for InputVenueMessageContent
source§fn clone(&self) -> InputVenueMessageContent
fn clone(&self) -> InputVenueMessageContent
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 InputVenueMessageContent
impl Debug for InputVenueMessageContent
source§impl<'de> Deserialize<'de> for InputVenueMessageContent
impl<'de> Deserialize<'de> for InputVenueMessageContent
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 From<InputVenueMessageContent> for InputMessageContent
impl From<InputVenueMessageContent> for InputMessageContent
source§fn from(o: InputVenueMessageContent) -> Self
fn from(o: InputVenueMessageContent) -> Self
Converts to this type from the input type.