pub enum OneWayRule {
Drop {
from: String,
when: Option<When>,
},
Default {
to: String,
value: Value,
direction: Direction,
when: Option<When>,
},
Aggregate {
function: AggregateFunction,
from: String,
to: String,
direction: Direction,
when: Option<When>,
},
}Expand description
A one-way rule: explicitly lossy, applying in one direction.
Variants§
Drop
Declares that from is deliberately not carried across while encoding.
Default
Inserts value at to while running in direction, when to is still absent from the output.
Fields
Aggregate
Writes the count, sum, minimum or maximum of the elements from reaches, grouped at the wildcards to keeps.
Implementations§
Trait Implementations§
Source§impl Clone for OneWayRule
impl Clone for OneWayRule
Source§impl Debug for OneWayRule
impl Debug for OneWayRule
Source§impl PartialEq for OneWayRule
impl PartialEq for OneWayRule
impl StructuralPartialEq for OneWayRule
Auto Trait Implementations§
impl Forget for OneWayRule
impl Freeze for OneWayRule
impl Move for OneWayRule
impl RefUnwindSafe for OneWayRule
impl Send for OneWayRule
impl Sync for OneWayRule
impl Unpin for OneWayRule
impl UnsafeUnpin for OneWayRule
impl UnwindSafe for OneWayRule
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