pub enum AggregationWindow {
Rolling(i64),
}Expand description
The time window configuration for an aggregation.
JSON schema
{
"title": "AggregationWindow",
"description": "The time window configuration for an aggregation.",
"oneOf": [
{
"type": "object",
"required": [
"seconds",
"type"
],
"properties": {
"seconds": {
"description": "Duration of the rolling window in seconds (1-72
hours).",
"type": "integer",
"maximum": 259200.0,
"minimum": 3600.0
},
"type": {
"type": "string",
"enum": [
"rolling"
]
}
}
}
],
"x-stainless-model": "aggregations.aggregation_window"
}Variants§
Trait Implementations§
Source§impl Clone for AggregationWindow
impl Clone for AggregationWindow
Source§fn clone(&self) -> AggregationWindow
fn clone(&self) -> AggregationWindow
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 AggregationWindow
impl Debug for AggregationWindow
Source§impl<'de> Deserialize<'de> for AggregationWindow
impl<'de> Deserialize<'de> for AggregationWindow
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 From<&AggregationWindow> for AggregationWindow
impl From<&AggregationWindow> for AggregationWindow
Source§fn from(value: &AggregationWindow) -> Self
fn from(value: &AggregationWindow) -> Self
Converts to this type from the input type.
Source§impl From<i64> for AggregationWindow
impl From<i64> for AggregationWindow
Auto Trait Implementations§
impl Freeze for AggregationWindow
impl RefUnwindSafe for AggregationWindow
impl Send for AggregationWindow
impl Sync for AggregationWindow
impl Unpin for AggregationWindow
impl UnsafeUnpin for AggregationWindow
impl UnwindSafe for AggregationWindow
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