pub enum Step {
DropEventTypes(Vec<String>),
KeepEventTypes(Vec<String>),
DropEventsWhere(EventPredicate),
RenameEventTypes(BTreeMap<String, String>),
TimeWindow(TimeWindow),
KeepObjectTypes(Vec<String>),
DropObjectsWithoutEvents,
}Expand description
One transformation step. Applied in recipe order; each step’s effect is reported (events/objects before and after).
Variants§
DropEventTypes(Vec<String>)
Drop every event of these types. Objects stay (use
Step::DropObjectsWithoutEvents to clean up afterwards).
KeepEventTypes(Vec<String>)
Keep only events of these types.
DropEventsWhere(EventPredicate)
Drop events matching the predicate (all set conditions must hold).
RenameEventTypes(BTreeMap<String, String>)
Rename event types; several old names mapping to one new name merge.
TimeWindow(TimeWindow)
Keep only events inside the half-open window [from, to). Object
attribute observations are not trimmed.
KeepObjectTypes(Vec<String>)
Keep objects of these types; events no longer related to any kept object are dropped (their other E2O links are stripped).
DropObjectsWithoutEvents
Drop objects no remaining event references (O2O links to dropped objects are stripped from survivors).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Step
impl<'de> Deserialize<'de> for Step
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 Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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