pub struct UsageWindow {
pub from: Option<DateTimeField>,
pub to: Option<DateTimeField>,
}Expand description
The date/time range that frames usage_count.
Written once as a sibling of sources; a single entry MAY carry its own to
override the shared one.
Fields§
§from: Option<DateTimeField>Start of the window.
to: Option<DateTimeField>End of the window.
Implementations§
Source§impl UsageWindow
impl UsageWindow
Sourcepub fn from_value(value: &Value) -> Option<Self>
pub fn from_value(value: &Value) -> Option<Self>
Reads a { from, to } mapping. Returns None when the value is not a
mapping.
Trait Implementations§
Source§impl Clone for UsageWindow
impl Clone for UsageWindow
Source§fn clone(&self) -> UsageWindow
fn clone(&self) -> UsageWindow
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 UsageWindow
impl Debug for UsageWindow
Source§impl Default for UsageWindow
impl Default for UsageWindow
Source§fn default() -> UsageWindow
fn default() -> UsageWindow
Returns the “default value” for a type. Read more
Source§impl Display for UsageWindow
impl Display for UsageWindow
impl Eq for UsageWindow
Source§impl PartialEq for UsageWindow
impl PartialEq for UsageWindow
impl StructuralPartialEq for UsageWindow
Auto Trait Implementations§
impl Freeze for UsageWindow
impl RefUnwindSafe for UsageWindow
impl Send for UsageWindow
impl Sync for UsageWindow
impl Unpin for UsageWindow
impl UnsafeUnpin for UsageWindow
impl UnwindSafe for UsageWindow
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