[][src]Struct vega_lite_4::WindowFieldDefBuilder

pub struct WindowFieldDefBuilder { /* fields omitted */ }

Builder for WindowFieldDef.

Methods

impl WindowFieldDefBuilder[src]

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

The output name for the window operation.

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

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

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

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

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

Parameter values for the window functions. Parameter values can be omitted for operations that do not accept a parameter.

See the list of all supported operations and their parameters here.

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

Builds a new WindowFieldDef.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for WindowFieldDefBuilder[src]

impl Default for WindowFieldDefBuilder[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.