pub struct Period {
pub from: Option<String>,
pub to: Option<String>,
}Expand description
The period of a report. null on either end means “unbounded”.
Fields§
§from: Option<String>§to: Option<String>Implementations§
Source§impl Period
impl Period
Sourcepub fn from_window(window: TimeWindow) -> Self
pub fn from_window(window: TimeWindow) -> Self
Build a period from a window, rendering bounds as ISO-8601 UTC.
TimeWindow::all uses saturating sentinels that are not representable
as timestamps; those become null rather than a fake date.
Trait Implementations§
impl Eq for Period
impl StructuralPartialEq for Period
Auto Trait Implementations§
impl Freeze for Period
impl RefUnwindSafe for Period
impl Send for Period
impl Sync for Period
impl Unpin for Period
impl UnsafeUnpin for Period
impl UnwindSafe for Period
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.