Struct telegram_bot_api::types::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>
Optional. Foursquare identifier of the venue, if known
foursquare_type: Option<String>
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
google_place_id: Option<String>
Optional. Google Places identifier of the venue
google_place_type: Option<String>
Optional. Google Places type of the venue. (See supported types.)
Implementations
Trait Implementations
sourceimpl Clone for InputVenueMessageContent
impl Clone for InputVenueMessageContent
sourcefn clone(&self) -> InputVenueMessageContent
fn clone(&self) -> InputVenueMessageContent
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InputVenueMessageContent
impl Debug for InputVenueMessageContent
sourceimpl<'de> Deserialize<'de> for InputVenueMessageContent
impl<'de> Deserialize<'de> for InputVenueMessageContent
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 Serialize for InputVenueMessageContent
impl Serialize for InputVenueMessageContent
Auto Trait Implementations
impl RefUnwindSafe for InputVenueMessageContent
impl Send for InputVenueMessageContent
impl Sync for InputVenueMessageContent
impl Unpin for InputVenueMessageContent
impl UnwindSafe for InputVenueMessageContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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