pub struct LoadOptions {
pub limits: Limits,
pub maximum_files: usize,
pub maximum_entries: usize,
pub maximum_total_bytes: u64,
pub maximum_diagnostics: usize,
}Expand description
Bounds on what a load may read.
Fields§
§limits: LimitsLimits for every JSONC document. They can only tighten the format’s
limits: a value above Limits::default is lowered to it.
maximum_files: usizeMost files read in one load.
maximum_entries: usizeMost directory entries listed in one load, counted before they are examined.
maximum_total_bytes: u64Most bytes read in one load.
maximum_diagnostics: usizeMost diagnostics kept, at least one; past this, one source.budget
diagnostic notes that the rest were dropped.
Trait Implementations§
Source§impl Clone for LoadOptions
impl Clone for LoadOptions
impl Copy for LoadOptions
Source§impl Debug for LoadOptions
impl Debug for LoadOptions
Source§impl Default for LoadOptions
impl Default for LoadOptions
impl Eq for LoadOptions
Source§impl PartialEq for LoadOptions
impl PartialEq for LoadOptions
impl StructuralPartialEq for LoadOptions
Auto Trait Implementations§
impl Freeze for LoadOptions
impl RefUnwindSafe for LoadOptions
impl Send for LoadOptions
impl Sync for LoadOptions
impl Unpin for LoadOptions
impl UnsafeUnpin for LoadOptions
impl UnwindSafe for LoadOptions
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