pub struct DateParts {
pub year: i64,
pub month: Option<u8>,
pub day: Option<u8>,
}Expand description
The core “date-parts” of a date complex type.
In CSL-JSON this is an array [year, month, day].
Fields§
§year: i64Year, in the Gregorian calendar
month: Option<u8>Month, starting from 1
day: Option<u8>Day of the month, starting from 1
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DateParts
impl<'de> Deserialize<'de> for DateParts
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
impl Copy for DateParts
impl Eq for DateParts
impl StructuralPartialEq for DateParts
Auto Trait Implementations§
impl Freeze for DateParts
impl RefUnwindSafe for DateParts
impl Send for DateParts
impl Sync for DateParts
impl Unpin for DateParts
impl UnwindSafe for DateParts
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