pub struct MapMapping {
pub path: String,
pub logic: Value,
pub logic_index: Option<usize>,
}Expand description
A single mapping that transforms and assigns data.
The mapping evaluates a JSONLogic expression against the message context and assigns the result to the specified path.
Fields§
§path: StringTarget path where the result will be stored (e.g., “data.user.name”).
Supports dot notation for nested paths and # prefix for numeric field names.
logic: ValueJSONLogic expression to evaluate. Can reference any field in the context
using {"var": "path.to.field"} syntax.
logic_index: Option<usize>Index into the compiled logic cache. Set during workflow compilation.
Trait Implementations§
Source§impl Clone for MapMapping
impl Clone for MapMapping
Source§fn clone(&self) -> MapMapping
fn clone(&self) -> MapMapping
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 MapMapping
impl Debug for MapMapping
Source§impl<'de> Deserialize<'de> for MapMapping
impl<'de> Deserialize<'de> for MapMapping
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 MapMapping
impl RefUnwindSafe for MapMapping
impl Send for MapMapping
impl Sync for MapMapping
impl Unpin for MapMapping
impl UnwindSafe for MapMapping
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