pub struct MappingValidation {
pub validation_type: ValidationType,
pub field: String,
pub params: Option<HashMap<String, Value>>,
pub error_message: String,
}Expand description
Validation rule for mapping
Fields§
§validation_type: ValidationTypeValidation type
field: StringTarget field
params: Option<HashMap<String, Value>>Validation parameters
error_message: StringError message if validation fails
Implementations§
Trait Implementations§
Source§impl Clone for MappingValidation
impl Clone for MappingValidation
Source§fn clone(&self) -> MappingValidation
fn clone(&self) -> MappingValidation
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 MappingValidation
impl Debug for MappingValidation
Source§impl<'de> Deserialize<'de> for MappingValidation
impl<'de> Deserialize<'de> for MappingValidation
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 MappingValidation
impl RefUnwindSafe for MappingValidation
impl Send for MappingValidation
impl Sync for MappingValidation
impl Unpin for MappingValidation
impl UnsafeUnpin for MappingValidation
impl UnwindSafe for MappingValidation
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