pub struct DerivedFieldConfig {
pub from: DerivationSource,
pub pattern: String,
pub validate: Option<ValidationRule>,
}Expand description
Configuration for a single derived field
Fields§
§from: DerivationSourceSource of the derived value
pattern: StringPattern for extracting/formatting the value
validate: Option<ValidationRule>Optional validation rule for the derived value
Trait Implementations§
Source§impl Clone for DerivedFieldConfig
impl Clone for DerivedFieldConfig
Source§fn clone(&self) -> DerivedFieldConfig
fn clone(&self) -> DerivedFieldConfig
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 moreSource§impl Debug for DerivedFieldConfig
impl Debug for DerivedFieldConfig
Source§impl<'de> Deserialize<'de> for DerivedFieldConfig
impl<'de> Deserialize<'de> for DerivedFieldConfig
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 DerivedFieldConfig
impl RefUnwindSafe for DerivedFieldConfig
impl Send for DerivedFieldConfig
impl Sync for DerivedFieldConfig
impl Unpin for DerivedFieldConfig
impl UnwindSafe for DerivedFieldConfig
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