pub struct ValidationRuleConfig {
pub validator_type: ValidatorType,
pub priority: Option<Priority>,
pub custom_message: Option<String>,
pub parameters: HashMap<String, String>,
}
Expand description
Configuration for a validation rule
Fields§
§validator_type: ValidatorType
§priority: Option<Priority>
§custom_message: Option<String>
§parameters: HashMap<String, String>
Trait Implementations§
Source§impl Clone for ValidationRuleConfig
impl Clone for ValidationRuleConfig
Source§fn clone(&self) -> ValidationRuleConfig
fn clone(&self) -> ValidationRuleConfig
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 Freeze for ValidationRuleConfig
impl RefUnwindSafe for ValidationRuleConfig
impl Send for ValidationRuleConfig
impl Sync for ValidationRuleConfig
impl Unpin for ValidationRuleConfig
impl UnwindSafe for ValidationRuleConfig
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