pub enum GapPolicy {
Skip,
InsertZeros,
}Expand description
The policy to apply when gaps are found in the data.
Variants§
Skip
Treats missing data as if the bucket does not exist. It will skip the bucket and continue calculating using the next available value.
InsertZeros
Replaces missing values with a zero (0) and pipeline aggregation
computation will proceed as normal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GapPolicy
impl<'de> Deserialize<'de> for GapPolicy
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 GapPolicy
impl RefUnwindSafe for GapPolicy
impl Send for GapPolicy
impl Sync for GapPolicy
impl Unpin for GapPolicy
impl UnsafeUnpin for GapPolicy
impl UnwindSafe for GapPolicy
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