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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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.
Auto Trait Implementations§
impl Freeze for InputVenueMessageContent
impl RefUnwindSafe for InputVenueMessageContent
impl Send for InputVenueMessageContent
impl Sync for InputVenueMessageContent
impl Unpin for InputVenueMessageContent
impl UnwindSafe for InputVenueMessageContent
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