#[non_exhaustive]pub struct CellDateTime {
pub serial: f64,
pub is_1904: bool,
pub kind: DateTimeKind,
pub iso: Option<String>,
pub has_serial: bool,
}Expand description
Spreadsheet-serial date/time value captured from calamine.
serial is the Excel date serial (days since 1900-01-00 or 1904-01-01).
is_1904 distinguishes the two date systems.
iso is populated when calamine provides an ISO string directly or when the
chrono feature can synthesize one.
has_serial distinguishes a genuine Excel serial (from Data::DateTime)
from the 0.0 placeholder used when calamine gives only an ISO string
(Data::DateTimeIso) and no numeric serial exists at all. Comparison
(RFC-019 / D-01) must not treat the placeholder as a real serial — a
legitimate date can itself serialise to 0.0, so the placeholder is not
otherwise distinguishable from a real one.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.serial: f64§is_1904: bool§kind: DateTimeKind§iso: Option<String>§has_serial: boolTrait Implementations§
Source§impl Clone for CellDateTime
impl Clone for CellDateTime
Source§fn clone(&self) -> CellDateTime
fn clone(&self) -> CellDateTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CellDateTime
impl Debug for CellDateTime
Source§impl PartialEq for CellDateTime
impl PartialEq for CellDateTime
impl StructuralPartialEq for CellDateTime
Auto Trait Implementations§
impl Freeze for CellDateTime
impl RefUnwindSafe for CellDateTime
impl Send for CellDateTime
impl Sync for CellDateTime
impl Unpin for CellDateTime
impl UnsafeUnpin for CellDateTime
impl UnwindSafe for CellDateTime
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