pub struct EnrichConfig {
pub connector: String,
pub method: HttpMethod,
pub path: Option<String>,
pub path_logic: Option<Value>,
pub path_logic_index: Option<usize>,
pub merge_path: String,
pub timeout_ms: u64,
pub on_error: EnrichErrorAction,
}Expand description
Configuration for the enrich integration function.
Enrichment calls an external service and merges the response into the message context.
Fields§
§connector: StringNamed connector reference
method: HttpMethodHTTP method for the enrichment call
path: Option<String>Static path
path_logic: Option<Value>JSONLogic expression to compute path dynamically
path_logic_index: Option<usize>Cache index for compiled path_logic
merge_path: StringDot-path where enrichment data is merged into the message context
timeout_ms: u64Request timeout in milliseconds (default: 30000)
on_error: EnrichErrorActionWhat to do on enrichment failure
Trait Implementations§
Source§impl Clone for EnrichConfig
impl Clone for EnrichConfig
Source§fn clone(&self) -> EnrichConfig
fn clone(&self) -> EnrichConfig
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 EnrichConfig
impl Debug for EnrichConfig
Source§impl<'de> Deserialize<'de> for EnrichConfig
impl<'de> Deserialize<'de> for EnrichConfig
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 EnrichConfig
impl RefUnwindSafe for EnrichConfig
impl Send for EnrichConfig
impl Sync for EnrichConfig
impl Unpin for EnrichConfig
impl UnsafeUnpin for EnrichConfig
impl UnwindSafe for EnrichConfig
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