pub struct ImportLimits {
pub max_bytes: usize,
pub max_nodes: usize,
pub max_depth: usize,
}Expand description
Resource limits for untrusted catalog XML.
Fields§
§max_bytes: usizeMaximum accepted document size in bytes.
max_nodes: usizeMaximum number of parsed elements.
max_depth: usizeMaximum element nesting depth.
Trait Implementations§
Source§impl Clone for ImportLimits
impl Clone for ImportLimits
Source§fn clone(&self) -> ImportLimits
fn clone(&self) -> ImportLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImportLimits
Source§impl Debug for ImportLimits
impl Debug for ImportLimits
Source§impl Default for ImportLimits
impl Default for ImportLimits
impl Eq for ImportLimits
Source§impl PartialEq for ImportLimits
impl PartialEq for ImportLimits
impl StructuralPartialEq for ImportLimits
Auto Trait Implementations§
impl Freeze for ImportLimits
impl RefUnwindSafe for ImportLimits
impl Send for ImportLimits
impl Sync for ImportLimits
impl Unpin for ImportLimits
impl UnsafeUnpin for ImportLimits
impl UnwindSafe for ImportLimits
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