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§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.