pub struct Event {
pub id: i32,
pub name: Vec<Text>,
pub date: Time,
pub location: Option<String>,
pub categories: Vec<String>,
pub countries: Vec<Country>,
pub description: Vec<Text>,
}Expand description
A historical event.
Fields§
§id: i32Identifier for the event.
name: Vec<Text>List of event names.
date: TimeDate of the event.
location: Option<String>Location of the event.
categories: Vec<String>Event categories.
countries: Vec<Country>Related countries.
description: Vec<Text>List of event descriptions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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