pub struct FieldMappingConfig {
pub copy: Vec<(String, String)>,
pub rename: Vec<(String, String)>,
pub set_literals: Vec<(String, Value)>,
pub remove: Vec<String>,
pub strict: bool,
}Fields§
§copy: Vec<(String, String)>Copy value from source path to destination path.
rename: Vec<(String, String)>Move value from source path to destination path.
set_literals: Vec<(String, Value)>Set a literal value at destination path.
remove: Vec<String>Remove a field path.
strict: boolWhen enabled, missing source/remove paths return an error.
Trait Implementations§
Source§impl Clone for FieldMappingConfig
impl Clone for FieldMappingConfig
Source§fn clone(&self) -> FieldMappingConfig
fn clone(&self) -> FieldMappingConfig
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 FieldMappingConfig
impl Debug for FieldMappingConfig
Source§impl Default for FieldMappingConfig
impl Default for FieldMappingConfig
Source§fn default() -> FieldMappingConfig
fn default() -> FieldMappingConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for FieldMappingConfig
impl PartialEq for FieldMappingConfig
Source§fn eq(&self, other: &FieldMappingConfig) -> bool
fn eq(&self, other: &FieldMappingConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldMappingConfig
Auto Trait Implementations§
impl Freeze for FieldMappingConfig
impl RefUnwindSafe for FieldMappingConfig
impl Send for FieldMappingConfig
impl Sync for FieldMappingConfig
impl Unpin for FieldMappingConfig
impl UnsafeUnpin for FieldMappingConfig
impl UnwindSafe for FieldMappingConfig
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