pub struct SourceMappingDto {
pub when: Option<MappingConditionDto>,
pub operation: Option<OperationTypeDto>,
pub operation_from: Option<String>,
pub operation_map: Option<HashMap<String, OperationTypeDto>>,
pub element_type: ElementTypeDto,
pub effective_from: Option<EffectiveFromConfigDto>,
pub template: ElementTemplateDto,
}Expand description
DTO for source mapping configuration (user-facing, camelCase).
Fields§
§when: Option<MappingConditionDto>Optional condition for when this mapping applies
operation: Option<OperationTypeDto>Static operation type
operation_from: Option<String>Path to extract operation from context (e.g., “payload.action”)
operation_map: Option<HashMap<String, OperationTypeDto>>Mapping from extracted values to operation types
element_type: ElementTypeDtoElement type to create
effective_from: Option<EffectiveFromConfigDto>Timestamp configuration for effective_from
template: ElementTemplateDtoTemplate for element creation
Trait Implementations§
Source§impl Clone for SourceMappingDto
impl Clone for SourceMappingDto
Source§fn clone(&self) -> SourceMappingDto
fn clone(&self) -> SourceMappingDto
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 SourceMappingDto
impl Debug for SourceMappingDto
Source§impl<'de> Deserialize<'de> for SourceMappingDto
impl<'de> Deserialize<'de> for SourceMappingDto
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 SourceMappingDto
impl PartialEq for SourceMappingDto
Source§fn eq(&self, other: &SourceMappingDto) -> bool
fn eq(&self, other: &SourceMappingDto) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceMappingDto
impl Serialize for SourceMappingDto
impl StructuralPartialEq for SourceMappingDto
Auto Trait Implementations§
impl Freeze for SourceMappingDto
impl RefUnwindSafe for SourceMappingDto
impl Send for SourceMappingDto
impl Sync for SourceMappingDto
impl Unpin for SourceMappingDto
impl UnsafeUnpin for SourceMappingDto
impl UnwindSafe for SourceMappingDto
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