pub struct Summary {
pub canonical: String,
pub level: u8,
pub kind: &'static str,
pub precision: Option<&'static str>,
pub earliest: Option<String>,
pub latest: Option<String>,
pub uncertain: bool,
pub approximate: bool,
pub unspecified: bool,
}Expand description
The JSON shape parse returns; one object per valid expression.
Fields§
§canonical: StringThe canonical (spec-preferred) rendering of the input.
level: u8Minimum EDTF conformance level (0, 1 or 2).
kind: &'static str"date" | "datetime" | "interval" | "set".
precision: Option<&'static str>"year" | "month" | "season" | "day" | null (dates/datetimes only).
earliest: Option<String>Earliest calendar day: "YYYY-MM-DD", "-infinity", or null (unknown).
latest: Option<String>Latest calendar day: "YYYY-MM-DD", "infinity", or null (unknown).
uncertain: boolAny component marked uncertain (? or %).
approximate: boolAny component marked approximate (~ or %).
unspecified: boolAny component with unspecified digits (X).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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