pub struct LoaderOptions {
pub max_nesting_depth: usize,
pub max_anchors: usize,
pub max_expanded_nodes: usize,
pub mode: LoadMode,
}Expand description
Security and behaviour options for the loader.
Fields§
§max_nesting_depth: usizeMaximum mapping/sequence nesting depth before returning
LoadError::NestingDepthLimitExceeded (default: 512).
max_anchors: usizeMaximum number of distinct anchor names per document before returning
LoadError::AnchorCountLimitExceeded (default: 10 000).
max_expanded_nodes: usizeMaximum total nodes produced by alias expansion in resolved mode before
returning LoadError::AliasExpansionLimitExceeded (default: 1 000 000).
mode: LoadModeControls how alias references are handled during loading.
Trait Implementations§
Source§impl Clone for LoaderOptions
impl Clone for LoaderOptions
Source§fn clone(&self) -> LoaderOptions
fn clone(&self) -> LoaderOptions
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 LoaderOptions
impl Debug for LoaderOptions
Auto Trait Implementations§
impl Freeze for LoaderOptions
impl RefUnwindSafe for LoaderOptions
impl Send for LoaderOptions
impl Sync for LoaderOptions
impl Unpin for LoaderOptions
impl UnsafeUnpin for LoaderOptions
impl UnwindSafe for LoaderOptions
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