pub struct ValidationRules {
pub max_depth: Option<usize>,
pub max_elements: Option<usize>,
pub required_fields: Vec<String>,
}Expand description
Rules for pattern structure validation
Fields§
§max_depth: Option<usize>§max_elements: Option<usize>§required_fields: Vec<String>Trait Implementations§
Source§impl Clone for ValidationRules
impl Clone for ValidationRules
Source§fn clone(&self) -> ValidationRules
fn clone(&self) -> ValidationRules
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 ValidationRules
impl Debug for ValidationRules
Source§impl Default for ValidationRules
impl Default for ValidationRules
Source§fn default() -> ValidationRules
fn default() -> ValidationRules
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationRules
impl RefUnwindSafe for ValidationRules
impl Send for ValidationRules
impl Sync for ValidationRules
impl Unpin for ValidationRules
impl UnsafeUnpin for ValidationRules
impl UnwindSafe for ValidationRules
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