pub struct WebhookMapping {
pub when: Option<MappingCondition>,
pub operation: Option<OperationType>,
pub operation_from: Option<String>,
pub operation_map: Option<HashMap<String, OperationType>>,
pub element_type: ElementType,
pub effective_from: Option<EffectiveFromConfig>,
pub template: ElementTemplate,
}Expand description
Mapping configuration from webhook payload to source change event
Fields§
§when: Option<MappingCondition>Optional condition for when this mapping applies
operation: Option<OperationType>Static operation type
operation_from: Option<String>Path to extract operation from payload
operation_map: Option<HashMap<String, OperationType>>Mapping from payload values to operation types
element_type: ElementTypeElement type to create
effective_from: Option<EffectiveFromConfig>Timestamp configuration for effective_from
template: ElementTemplateTemplate for element creation
Implementations§
Trait Implementations§
Source§impl Clone for WebhookMapping
impl Clone for WebhookMapping
Source§fn clone(&self) -> WebhookMapping
fn clone(&self) -> WebhookMapping
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 WebhookMapping
impl Debug for WebhookMapping
Source§impl<'de> Deserialize<'de> for WebhookMapping
impl<'de> Deserialize<'de> for WebhookMapping
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
Source§impl PartialEq for WebhookMapping
impl PartialEq for WebhookMapping
Source§impl Serialize for WebhookMapping
impl Serialize for WebhookMapping
impl StructuralPartialEq for WebhookMapping
Auto Trait Implementations§
impl Freeze for WebhookMapping
impl RefUnwindSafe for WebhookMapping
impl Send for WebhookMapping
impl Sync for WebhookMapping
impl Unpin for WebhookMapping
impl UnsafeUnpin for WebhookMapping
impl UnwindSafe for WebhookMapping
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