pub struct ChartPeriod {
pub start: Option<String>,
pub end: Option<String>,
}Expand description
The inclusive calendar period a document covers (data-model.md §1).
An absent bound stays null — “unbounded on that side” is coverage, not a guess.
Fields§
§start: Option<String>Inclusive start, or null for “unbounded from the beginning”.
end: Option<String>Inclusive end, or null for “still open”.
Trait Implementations§
Source§impl Clone for ChartPeriod
impl Clone for ChartPeriod
Source§impl Debug for ChartPeriod
impl Debug for ChartPeriod
Source§impl Default for ChartPeriod
impl Default for ChartPeriod
Source§impl<'de> Deserialize<'de> for ChartPeriod
impl<'de> Deserialize<'de> for ChartPeriod
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 Eq for ChartPeriod
Source§impl PartialEq for ChartPeriod
impl PartialEq for ChartPeriod
Source§impl Serialize for ChartPeriod
impl Serialize for ChartPeriod
impl StructuralPartialEq for ChartPeriod
Auto Trait Implementations§
impl Freeze for ChartPeriod
impl RefUnwindSafe for ChartPeriod
impl Send for ChartPeriod
impl Sync for ChartPeriod
impl Unpin for ChartPeriod
impl UnsafeUnpin for ChartPeriod
impl UnwindSafe for ChartPeriod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more