teloxide/src/types/venue.rs
Temirkhan Myrzamadi 0668987b2d Fix derives
2020-01-05 09:14:04 +06:00

25 lines
661 B
Rust

use serde::{Deserialize, Serialize};
use crate::types::Location;
/// This object represents a venue.
#[serde_with_macros::skip_serializing_none]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Venue {
/// Venue location.
pub location: Location,
/// Name of the venue.
pub title: String,
/// Address of the venue.
pub address: String,
/// Foursquare identifier of the venue.
pub foursquare_id: Option<String>,
/// Foursquare type of the venue. (For example,
/// `arts_entertainment/default`, `arts_entertainment/aquarium` or
/// `food/icecream`.)
pub foursquare_type: Option<String>,
}