pub struct MapConfig {
pub template: Value,
}Expand description
Configuration for the map operator
Transforms the payload using a Tera template.
- map:
template:
type: like
recipient_id: "{{ owner.id }}"
message: "{{ source.name }} liked your trace"Fields§
§template: ValueTemplate to render — each value can contain Tera expressions
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapConfig
impl<'de> Deserialize<'de> for MapConfig
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 MapConfig
impl RefUnwindSafe for MapConfig
impl Send for MapConfig
impl Sync for MapConfig
impl Unpin for MapConfig
impl UnsafeUnpin for MapConfig
impl UnwindSafe for MapConfig
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