teloxide/src/types/venue.rs

26 lines
661 B
Rust
Raw Normal View History

use serde::{Deserialize, Serialize};
2019-09-21 00:02:37 +03:00
use crate::types::Location;
/// This object represents a venue.
#[serde_with_macros::skip_serializing_none]
2020-01-05 09:14:04 +06:00
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Venue {
2019-12-11 22:19:48 +06:00
/// Venue location.
pub location: Location,
2019-12-11 22:19:48 +06:00
/// Name of the venue.
pub title: String,
2019-12-11 22:19:48 +06:00
/// Address of the venue.
pub address: String,
2019-12-11 22:19:48 +06:00
/// Foursquare identifier of the venue.
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`.)
pub foursquare_type: Option<String>,
2019-09-19 01:30:30 +03:00
}