pub struct CustomValidation {
pub expression: String,
pub message: String,
}Expand description
Custom validation rule.
Fields§
§expression: String§message: StringTrait Implementations§
Source§impl Clone for CustomValidation
impl Clone for CustomValidation
Source§fn clone(&self) -> CustomValidation
fn clone(&self) -> CustomValidation
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 CustomValidation
impl Debug for CustomValidation
Source§impl<'de> Deserialize<'de> for CustomValidation
impl<'de> Deserialize<'de> for CustomValidation
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 CustomValidation
impl RefUnwindSafe for CustomValidation
impl Send for CustomValidation
impl Sync for CustomValidation
impl Unpin for CustomValidation
impl UnwindSafe for CustomValidation
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