Struct vega_lite_4::AggregatedFieldDefBuilder
source · pub struct AggregatedFieldDefBuilder { /* private fields */ }
Expand description
Builder for AggregatedFieldDef
.
Implementations§
source§impl AggregatedFieldDefBuilder
impl AggregatedFieldDefBuilder
sourcepub fn aggregated_field_def_as<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn aggregated_field_def_as<VALUE: Into<String>>( &mut self, value: VALUE ) -> &mut Self
The output field names to use for each aggregated field.
sourcepub fn field<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn field<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The data field for which to compute aggregate function. This is required for all
aggregation operations except "count"
.
sourcepub fn op<VALUE: Into<AggregateOp>>(&mut self, value: VALUE) -> &mut Self
pub fn op<VALUE: Into<AggregateOp>>(&mut self, value: VALUE) -> &mut Self
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.
sourcepub fn build(
&self
) -> Result<AggregatedFieldDef, AggregatedFieldDefBuilderError>
pub fn build( &self ) -> Result<AggregatedFieldDef, AggregatedFieldDefBuilderError>
Trait Implementations§
source§impl Clone for AggregatedFieldDefBuilder
impl Clone for AggregatedFieldDefBuilder
source§fn clone(&self) -> AggregatedFieldDefBuilder
fn clone(&self) -> AggregatedFieldDefBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for AggregatedFieldDefBuilder
impl Send for AggregatedFieldDefBuilder
impl Sync for AggregatedFieldDefBuilder
impl Unpin for AggregatedFieldDefBuilder
impl UnwindSafe for AggregatedFieldDefBuilder
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