pub struct ValidationRules {
pub max_message_size: usize,
pub max_batch_size: usize,
pub max_string_length: usize,
pub max_array_length: usize,
pub max_object_depth: usize,
pub required_fields: HashMap<String, HashSet<String>>,
}Expand description
Validation rules configuration
Fields§
§max_message_size: usizeMaximum message size in bytes
max_batch_size: usizeMaximum batch size
max_string_length: usizeMaximum string length
max_array_length: usizeMaximum array length
max_object_depth: usizeMaximum object depth
required_fields: HashMap<String, HashSet<String>>Required fields per message type
Implementations§
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
Auto Trait Implementations§
impl Freeze for ValidationRules
impl RefUnwindSafe for ValidationRules
impl Send for ValidationRules
impl Sync for ValidationRules
impl Unpin 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