pub struct DatePoint {
pub year: Option<i32>,
pub month: Option<u32>,
pub day: Option<u32>,
pub era: Option<String>,
}Expand description
One endpoint of a date range, with optional precision.
Precision follows the fields present: year only → year precision; year + month → month precision; all three → day precision.
Fields§
§year: Option<i32>Year component. Negative for BCE years.
month: Option<u32>Month component (1–12), if present.
day: Option<u32>Day component (1–31), if present.
era: Option<String>Era string (e.g. "CE", "BCE"), if present in the response.
Trait Implementations§
impl StructuralPartialEq for DatePoint
Auto Trait Implementations§
impl Freeze for DatePoint
impl RefUnwindSafe for DatePoint
impl Send for DatePoint
impl Sync for DatePoint
impl Unpin for DatePoint
impl UnsafeUnpin for DatePoint
impl UnwindSafe for DatePoint
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