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<AggregationWindow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AggregationWindow, <__D as Deserializer<'de>>::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) -> AggregationWindow
fn from(value: &AggregationWindow) -> AggregationWindow
Converts to this type from the input type.
Source§impl From<i64> for AggregationWindow
impl From<i64> for AggregationWindow
Source§fn from(value: i64) -> AggregationWindow
fn from(value: i64) -> AggregationWindow
Converts to this type from the input type.
Source§impl Serialize for AggregationWindow
impl Serialize for AggregationWindow
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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