pub struct DateEntry {
pub date_type: String,
pub when: String,
}Expand description
Date entry with type and ISO 8601 timestamp
Fields§
§date_type: StringDate type (e.g., “created”, “modified”, “published”, “ratified”)
when: StringISO 8601 date or datetime Formats:
- Date only: YYYY-MM-DD
- DateTime: YYYY-MM-DDTHH:MM:SS
- DateTime with timezone: YYYY-MM-DDTHH:MM:SS±HH:MM or Z
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DateEntry
impl<'de> Deserialize<'de> for DateEntry
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 StructuralPartialEq for DateEntry
Auto Trait Implementations§
impl Freeze for DateEntry
impl RefUnwindSafe for DateEntry
impl Send for DateEntry
impl Sync for DateEntry
impl Unpin for DateEntry
impl UnwindSafe for DateEntry
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