Struct vega_lite_4::AggregatedFieldDef
source · pub struct AggregatedFieldDef {
pub aggregated_field_def_as: Option<String>,
pub field: Option<String>,
pub op: Option<AggregateOp>,
}
Fields§
§aggregated_field_def_as: Option<String>
The output field names to use for each aggregated field.
field: Option<String>
The data field for which to compute aggregate function. This is required for all
aggregation operations except "count"
.
op: Option<AggregateOp>
The aggregation operation to apply to the fields (e.g., "sum"
, "average"
, or
"count"
). See the full list of supported aggregation
operations for more
information.
Trait Implementations§
source§impl Clone for AggregatedFieldDef
impl Clone for AggregatedFieldDef
source§fn clone(&self) -> AggregatedFieldDef
fn clone(&self) -> AggregatedFieldDef
Returns a copy of the value. Read more
1.0.0 · 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 AggregatedFieldDef
impl Debug for AggregatedFieldDef
source§impl Default for AggregatedFieldDef
impl Default for AggregatedFieldDef
source§fn default() -> AggregatedFieldDef
fn default() -> AggregatedFieldDef
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AggregatedFieldDef
impl<'de> Deserialize<'de> for AggregatedFieldDef
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
Auto Trait Implementations§
impl RefUnwindSafe for AggregatedFieldDef
impl Send for AggregatedFieldDef
impl Sync for AggregatedFieldDef
impl Unpin for AggregatedFieldDef
impl UnwindSafe for AggregatedFieldDef
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