pub struct WindowSpan {
pub calendar: bool,
pub end: String,
pub label: String,
pub start: Option<String>,
pub truncated: bool,
pub window: CostWindow,
pub zone: Option<String>,
}Expand description
A resolved window, and an honest account of how it was arrived at.
Fields§
§calendar: boolTrue when the start was reckoned against a local midnight.
end: StringWhen the period ends, which is the moment it was resolved.
label: StringA human label, such as “Last 30 days”.
start: Option<String>When the period begins. Null means from the beginning of what is kept.
truncated: boolTrue when the period reaches further back than retention keeps, which makes the totals a lower bound rather than a total.
window: CostWindowWhich window this is.
zone: Option<String>The IANA zone the start was reckoned in, or null for a rolling window. The absence is the point: nobody should have to wonder which zone “last 7 days” used.
Trait Implementations§
Source§impl Clone for WindowSpan
impl Clone for WindowSpan
Source§impl Debug for WindowSpan
impl Debug for WindowSpan
Source§impl<'de> Deserialize<'de> for WindowSpan
impl<'de> Deserialize<'de> for WindowSpan
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
Source§impl PartialEq for WindowSpan
impl PartialEq for WindowSpan
Source§impl Serialize for WindowSpan
impl Serialize for WindowSpan
impl StructuralPartialEq for WindowSpan
Auto Trait Implementations§
impl Freeze for WindowSpan
impl RefUnwindSafe for WindowSpan
impl Send for WindowSpan
impl Sync for WindowSpan
impl Unpin for WindowSpan
impl UnsafeUnpin for WindowSpan
impl UnwindSafe for WindowSpan
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