#[non_exhaustive]pub struct SummaryRange {
pub date: Option<String>,
pub end: String,
pub start: String,
pub text: Option<String>,
pub timezone: Option<String>,
}Expand description
Date range metadata attached to a SummaryData entry.
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.date: Option<String>Calendar date string (e.g. "2025-01-13"). Present on single-day
entries; may be absent on range queries.
end: StringISO 8601 end timestamp.
start: StringISO 8601 start timestamp.
text: Option<String>Human-readable description (e.g. "today", "yesterday").
timezone: Option<String>IANA timezone used when computing the range.
Trait Implementations§
Source§impl Clone for SummaryRange
impl Clone for SummaryRange
Source§fn clone(&self) -> SummaryRange
fn clone(&self) -> SummaryRange
Returns a duplicate of the value. Read more
1.0.0 · 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 SummaryRange
impl Debug for SummaryRange
Source§impl Default for SummaryRange
impl Default for SummaryRange
Source§fn default() -> SummaryRange
fn default() -> SummaryRange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SummaryRange
impl<'de> Deserialize<'de> for SummaryRange
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
Auto Trait Implementations§
impl Freeze for SummaryRange
impl RefUnwindSafe for SummaryRange
impl Send for SummaryRange
impl Sync for SummaryRange
impl Unpin for SummaryRange
impl UnsafeUnpin for SummaryRange
impl UnwindSafe for SummaryRange
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