Struct vega_lite_4::WindowFieldDef
source · pub struct WindowFieldDef {
pub window_field_def_as: Option<String>,
pub field: Option<String>,
pub op: Option<Op>,
pub param: Option<f64>,
}
Fields§
§window_field_def_as: Option<String>
The output name for the window operation.
field: Option<String>
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"
.
op: Option<Op>
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.
param: Option<f64>
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.
Trait Implementations§
source§impl Clone for WindowFieldDef
impl Clone for WindowFieldDef
source§fn clone(&self) -> WindowFieldDef
fn clone(&self) -> WindowFieldDef
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 moresource§impl Debug for WindowFieldDef
impl Debug for WindowFieldDef
source§impl Default for WindowFieldDef
impl Default for WindowFieldDef
source§fn default() -> WindowFieldDef
fn default() -> WindowFieldDef
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WindowFieldDef
impl<'de> Deserialize<'de> for WindowFieldDef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for WindowFieldDef
impl Send for WindowFieldDef
impl Sync for WindowFieldDef
impl Unpin for WindowFieldDef
impl UnwindSafe for WindowFieldDef
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