[][src]Struct vega_lite_4::JoinAggregateFieldDefBuilder

pub struct JoinAggregateFieldDefBuilder { /* fields omitted */ }

Builder for JoinAggregateFieldDef.

Implementations

impl JoinAggregateFieldDefBuilder[src]

pub fn join_aggregate_field_def_as<VALUE: Into<String>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The output name for the join aggregate operation.

pub fn field<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

The data field for which to compute the aggregate function. This can be omitted for functions that do not operate over a field such as "count".

pub fn op<VALUE: Into<AggregateOp>>(&mut self, value: VALUE) -> &mut Self[src]

The aggregation operation to apply (e.g., "sum", "average" or "count"). See the list of all supported operations here.

pub fn build(&self) -> Result<JoinAggregateFieldDef, String>[src]

Builds a new JoinAggregateFieldDef.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for JoinAggregateFieldDefBuilder[src]

impl Default for JoinAggregateFieldDefBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.