pub struct IntegrationFieldMapping {
pub id: IntegrationFieldMappingId,
pub integration_account: String,
pub mapping_group: String,
pub source_field: String,
pub destination_field: String,
pub template: Option<String>,
pub transform: FieldTransform,
pub fallback: Option<String>,
pub is_active: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A field-path mapping for an integration account.
Fields§
§id: IntegrationFieldMappingIdUnique mapping ID.
integration_account: StringIntegration account this mapping belongs to.
mapping_group: StringLogical mapping group (e.g. order, shipment).
source_field: StringSource field path (e.g. order.customer.email).
destination_field: StringDestination field name.
template: Option<String>Optional template (e.g. "{first} {last}").
transform: FieldTransformValue transform.
fallback: Option<String>Fallback value when the source is missing/empty.
is_active: boolWhether the mapping is active.
created_at: DateTime<Utc>When the mapping was created.
updated_at: DateTime<Utc>When the mapping was last updated.
Implementations§
Trait Implementations§
Source§impl Clone for IntegrationFieldMapping
impl Clone for IntegrationFieldMapping
Source§fn clone(&self) -> IntegrationFieldMapping
fn clone(&self) -> IntegrationFieldMapping
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 IntegrationFieldMapping
impl Debug for IntegrationFieldMapping
Source§impl<'de> Deserialize<'de> for IntegrationFieldMapping
impl<'de> Deserialize<'de> for IntegrationFieldMapping
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 IntegrationFieldMapping
impl RefUnwindSafe for IntegrationFieldMapping
impl Send for IntegrationFieldMapping
impl Sync for IntegrationFieldMapping
impl Unpin for IntegrationFieldMapping
impl UnsafeUnpin for IntegrationFieldMapping
impl UnwindSafe for IntegrationFieldMapping
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