pub struct Person {
pub id: i32,
pub name: Name,
pub birthdate: Option<Time>,
pub deathdate: Option<Time>,
pub categories: Option<Vec<String>>,
pub nationalities: Option<Vec<String>>,
}Expand description
A historical person.
Fields§
§id: i32Identifier for the person.
name: NameFull name.
birthdate: Option<Time>Date of birth.
deathdate: Option<Time>Date of death.
categories: Option<Vec<String>>Person categories.
nationalities: Option<Vec<String>>Person nationalities.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Person
impl<'de> Deserialize<'de> for Person
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 Person
impl RefUnwindSafe for Person
impl Send for Person
impl Sync for Person
impl Unpin for Person
impl UnwindSafe for Person
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