pub struct SourceMapping {
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 source payload to graph change event.
Defines how to transform an incoming payload into a SourceChange.
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 context (e.g., “payload.action”)
operation_map: Option<HashMap<String, OperationType>>Mapping from extracted 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 SourceMapping
impl Clone for SourceMapping
Source§fn clone(&self) -> SourceMapping
fn clone(&self) -> SourceMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourceMapping
impl Debug for SourceMapping
Source§impl<'de> Deserialize<'de> for SourceMapping
impl<'de> Deserialize<'de> for SourceMapping
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 From<SourceMappingDto> for SourceMapping
impl From<SourceMappingDto> for SourceMapping
Source§fn from(dto: SourceMappingDto) -> Self
fn from(dto: SourceMappingDto) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SourceMapping
impl PartialEq for SourceMapping
Source§fn eq(&self, other: &SourceMapping) -> bool
fn eq(&self, other: &SourceMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceMapping
impl Serialize for SourceMapping
impl StructuralPartialEq for SourceMapping
Auto Trait Implementations§
impl Freeze for SourceMapping
impl RefUnwindSafe for SourceMapping
impl Send for SourceMapping
impl Sync for SourceMapping
impl Unpin for SourceMapping
impl UnsafeUnpin for SourceMapping
impl UnwindSafe for SourceMapping
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