pub struct TomlValidationOptions {
pub allow_inline_tables: bool,
pub allow_multiline_strings: bool,
pub max_nesting_depth: Option<usize>,
pub max_array_length: Option<usize>,
pub max_string_length: Option<usize>,
}Expand description
TOML-specific validation options
Fields§
§allow_inline_tables: boolAllow inline tables
allow_multiline_strings: boolAllow multiline strings
max_nesting_depth: Option<usize>Maximum nesting depth
max_array_length: Option<usize>Maximum array length
max_string_length: Option<usize>Maximum string length
Trait Implementations§
Source§impl Clone for TomlValidationOptions
impl Clone for TomlValidationOptions
Source§fn clone(&self) -> TomlValidationOptions
fn clone(&self) -> TomlValidationOptions
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 TomlValidationOptions
impl Debug for TomlValidationOptions
Source§impl Default for TomlValidationOptions
impl Default for TomlValidationOptions
Source§fn default() -> TomlValidationOptions
fn default() -> TomlValidationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TomlValidationOptions
impl RefUnwindSafe for TomlValidationOptions
impl Send for TomlValidationOptions
impl Sync for TomlValidationOptions
impl Unpin for TomlValidationOptions
impl UnwindSafe for TomlValidationOptions
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