Struct vega_lite_4::WindowFieldDefBuilder
source · pub struct WindowFieldDefBuilder { /* private fields */ }
Expand description
Builder for WindowFieldDef
.
Implementations§
source§impl WindowFieldDefBuilder
impl WindowFieldDefBuilder
sourcepub fn window_field_def_as<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn window_field_def_as<VALUE: Into<String>>( &mut self, value: VALUE ) -> &mut Self
The output name for the window operation.
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 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"
.
sourcepub fn op<VALUE: Into<Op>>(&mut self, value: VALUE) -> &mut Self
pub fn op<VALUE: Into<Op>>(&mut self, value: VALUE) -> &mut Self
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.
sourcepub fn param<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn param<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
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.
sourcepub fn build(&self) -> Result<WindowFieldDef, WindowFieldDefBuilderError>
pub fn build(&self) -> Result<WindowFieldDef, WindowFieldDefBuilderError>
Trait Implementations§
source§impl Clone for WindowFieldDefBuilder
impl Clone for WindowFieldDefBuilder
source§fn clone(&self) -> WindowFieldDefBuilder
fn clone(&self) -> WindowFieldDefBuilder
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 WindowFieldDefBuilder
impl Send for WindowFieldDefBuilder
impl Sync for WindowFieldDefBuilder
impl Unpin for WindowFieldDefBuilder
impl UnwindSafe for WindowFieldDefBuilder
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