[−][src]Struct vega_lite_3::WindowFieldDefBuilder
Builder for WindowFieldDef
.
Methods
impl WindowFieldDefBuilder
[src]
pub fn window_field_def_as<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl Clone for WindowFieldDefBuilder
[src]
fn clone(&self) -> WindowFieldDefBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for WindowFieldDefBuilder
[src]
fn default() -> WindowFieldDefBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for WindowFieldDefBuilder
impl Send for WindowFieldDefBuilder
impl Sync for WindowFieldDefBuilder
impl Unpin for WindowFieldDefBuilder
impl UnwindSafe for WindowFieldDefBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,