pub struct AggregationMetric {
pub abi: Option<AbiSchema>,
pub field: String,
pub field_source: String,
pub function: AggregationMetricFunction,
}Expand description
The metric configuration for an aggregation, defining what field/field_source to measure and the aggregation function to apply.
JSON schema
{
"title": "AggregationMetric",
"description": "The metric configuration for an aggregation, defining
what field/field_source to measure and the aggregation function to
apply.",
"type": "object",
"required": [
"field",
"field_source",
"function"
],
"properties": {
"abi": {
"$ref": "#/components/schemas/AbiSchema"
},
"field": {
"type": "string"
},
"field_source": {
"type": "string"
},
"function": {
"description": "The aggregation function to apply.",
"type": "string",
"enum": [
"sum"
]
}
},
"x-stainless-model": "aggregations.aggregation_metric"
}Fields§
§abi: Option<AbiSchema>§field: String§field_source: String§function: AggregationMetricFunctionThe aggregation function to apply.
Trait Implementations§
Source§impl Clone for AggregationMetric
impl Clone for AggregationMetric
Source§fn clone(&self) -> AggregationMetric
fn clone(&self) -> AggregationMetric
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 AggregationMetric
impl Debug for AggregationMetric
Source§impl<'de> Deserialize<'de> for AggregationMetric
impl<'de> Deserialize<'de> for AggregationMetric
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<&AggregationMetric> for AggregationMetric
impl From<&AggregationMetric> for AggregationMetric
Source§fn from(value: &AggregationMetric) -> Self
fn from(value: &AggregationMetric) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AggregationMetric
impl RefUnwindSafe for AggregationMetric
impl Send for AggregationMetric
impl Sync for AggregationMetric
impl Unpin for AggregationMetric
impl UnsafeUnpin for AggregationMetric
impl UnwindSafe for AggregationMetric
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