Struct tg_flows::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: f64Latitude of the venue in degrees.
longitude: f64Longitude of the venue in degrees.
title: StringName of the venue.
address: StringAddress 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 ) -> Selfwhere S1: Into<String>, S2: Into<String>,
pub fn latitude(self, val: f64) -> Self
pub fn longitude(self, val: f64) -> Self
pub fn title<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn address<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn foursquare_id<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn foursquare_type<S>(self, val: S) -> Selfwhere 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<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<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 ==.