Struct vega_lite::WindowFieldDef
source · pub struct WindowFieldDef {
pub window_field_def_as: String,
pub field: Option<String>,
pub op: Op,
pub param: Option<f64>,
}
Fields§
§window_field_def_as: 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: Op
The window or aggregation operations to apply within a window, including 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 Debug for WindowFieldDef
impl Debug for WindowFieldDef
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