pub enum MovingFunction {
Max,
Min,
Sum,
UnweightedAvg,
LinearWeightedAvg,
Other(String),
}Expand description
The moving function to use in the moving function aggregate.
Variants§
Max
The maximum value in the window.
Min
The minimum value in the window.
Sum
The sum of the values in the window.
UnweightedAvg
The unweighted average of the values in the window.
LinearWeightedAvg
The linear weighted average of the values in the window.
Other(String)
Some other function.
Trait Implementations§
Source§impl Clone for MovingFunction
impl Clone for MovingFunction
Source§fn clone(&self) -> MovingFunction
fn clone(&self) -> MovingFunction
Returns a duplicate 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 MovingFunction
impl Debug for MovingFunction
Source§impl<'de> Deserialize<'de> for MovingFunction
impl<'de> Deserialize<'de> for MovingFunction
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 Freeze for MovingFunction
impl RefUnwindSafe for MovingFunction
impl Send for MovingFunction
impl Sync for MovingFunction
impl Unpin for MovingFunction
impl UnwindSafe for MovingFunction
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