pub struct ValidationSet {
pub name: String,
pub description: Option<String>,
pub items: Vec<ValidationSetItem>,
}Fields§
§name: String§description: Option<String>§items: Vec<ValidationSetItem>Implementations§
Source§impl ValidationSet
impl ValidationSet
pub fn resolve_settings_with_rules<'a>( &'a self, rules: impl Fn(&str) -> Option<&'a ValidationRule>, ) -> Result<ValidationSettings, ValidationSetResolveError>
pub fn resolve_with_rules<'a>( &'a self, rules: impl Fn(&str) -> Option<&'a ValidationRule>, ) -> Result<ValidationConfig, ValidationSetResolveError>
Trait Implementations§
Source§impl Clone for ValidationSet
impl Clone for ValidationSet
Source§fn clone(&self) -> ValidationSet
fn clone(&self) -> ValidationSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValidationSet
impl Debug for ValidationSet
Source§impl<'de> Deserialize<'de> for ValidationSet
impl<'de> Deserialize<'de> for ValidationSet
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 ValidationSet
impl RefUnwindSafe for ValidationSet
impl Send for ValidationSet
impl Sync for ValidationSet
impl Unpin for ValidationSet
impl UnsafeUnpin for ValidationSet
impl UnwindSafe for ValidationSet
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