2019-12-30 13:14:19 +03:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
2019-09-21 00:02:37 +03:00
|
|
|
use crate::types::Location;
|
2019-09-03 21:44:38 +03:00
|
|
|
|
2019-09-07 22:17:14 +03:00
|
|
|
/// This object represents a venue.
|
2019-12-30 13:44:22 +03:00
|
|
|
#[serde_with_macros::skip_serializing_none]
|
2020-01-05 09:14:04 +06:00
|
|
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
2019-09-03 21:44:38 +03:00
|
|
|
pub struct Venue {
|
2019-12-11 22:19:48 +06:00
|
|
|
/// Venue location.
|
2019-09-03 21:44:38 +03:00
|
|
|
pub location: Location,
|
2019-12-11 22:19:48 +06:00
|
|
|
|
|
|
|
/// Name of the venue.
|
2019-09-03 21:44:38 +03:00
|
|
|
pub title: String,
|
2019-12-11 22:19:48 +06:00
|
|
|
|
|
|
|
/// Address of the venue.
|
2019-09-03 21:44:38 +03:00
|
|
|
pub address: String,
|
2019-12-11 22:19:48 +06:00
|
|
|
|
|
|
|
/// Foursquare identifier of the venue.
|
2019-09-03 21:44:38 +03:00
|
|
|
pub foursquare_id: Option<String>,
|
2019-12-11 22:19:48 +06:00
|
|
|
|
2019-09-19 01:30:30 +03:00
|
|
|
/// Foursquare type of the venue. (For example,
|
2019-12-11 22:19:48 +06:00
|
|
|
/// `arts_entertainment/default`, `arts_entertainment/aquarium` or
|
|
|
|
/// `food/icecream`.)
|
2019-12-30 13:44:22 +03:00
|
|
|
pub foursquare_type: Option<String>,
|
2019-09-19 01:30:30 +03:00
|
|
|
}
|