pub struct TypedFieldMapping<S> {
pub target_path: String,
pub source: MappingSource,
pub transform: Option<Transformation>,
pub population: PopulationStrategy,
/* private fields */
}Fields§
§target_path: String§source: MappingSource§transform: Option<Transformation>§population: PopulationStrategyImplementations§
Source§impl<S> TypedFieldMapping<S>
impl<S> TypedFieldMapping<S>
pub fn new( target_path: String, source: MappingSource, population: PopulationStrategy, ) -> Self
pub fn with_transform(self, transform: Transformation) -> Self
Sourcepub fn to_serializable(&self) -> SerializableFieldMapping
pub fn to_serializable(&self) -> SerializableFieldMapping
Convert to serializable format
Sourcepub fn from_serializable(mapping: SerializableFieldMapping) -> Self
pub fn from_serializable(mapping: SerializableFieldMapping) -> Self
Create from serializable format
Trait Implementations§
Source§impl<S: Clone> Clone for TypedFieldMapping<S>
impl<S: Clone> Clone for TypedFieldMapping<S>
Source§fn clone(&self) -> TypedFieldMapping<S>
fn clone(&self) -> TypedFieldMapping<S>
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 moreAuto Trait Implementations§
impl<S> Freeze for TypedFieldMapping<S>
impl<S> RefUnwindSafe for TypedFieldMapping<S>where
S: RefUnwindSafe,
impl<S> Send for TypedFieldMapping<S>where
S: Send,
impl<S> Sync for TypedFieldMapping<S>where
S: Sync,
impl<S> Unpin for TypedFieldMapping<S>where
S: Unpin,
impl<S> UnwindSafe for TypedFieldMapping<S>where
S: UnwindSafe,
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