tg_flows/types/
venue.rs

1use serde::{Deserialize, Serialize};
2
3use crate::types::Location;
4
5/// This object represents a venue.
6#[serde_with_macros::skip_serializing_none]
7#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
8pub struct Venue {
9    /// Venue location.
10    pub location: Location,
11
12    /// Name of the venue.
13    pub title: String,
14
15    /// Address of the venue.
16    pub address: String,
17
18    /// Foursquare identifier of the venue.
19    pub foursquare_id: Option<String>,
20
21    /// Foursquare type of the venue. (For example,
22    /// `arts_entertainment/default`, `arts_entertainment/aquarium` or
23    /// `food/icecream`.)
24    pub foursquare_type: Option<String>,
25
26    /// Google Places identifier of the venue.
27    pub google_place_id: Option<String>,
28
29    /// Google Places type of the venue. (See [supported types].)
30    ///
31    /// [supported types]: https://developers.google.com/places/web-service/supported_types
32    pub google_place_type: Option<String>,
33}