#[non_exhaustive]pub enum SchemaLimit {
ElementDepth,
ComponentDepth,
DirectiveDepth,
XPathDepth,
}Expand description
A limit of the crate that a schema can break (see
SchemaError::LimitExceeded).
Display (and setting) is the setting that holds it,
e.g. ParserConfig::max_depth.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ElementDepth
The element nesting of a schema document
(ParserConfig::max_depth).
ComponentDepth
The nesting of components through references
(SchemaSet::max_depth, set from
ParserConfig::max_depth).
DirectiveDepth
The nesting of xs:include / xs:import / xs:redefine /
xs:override directives
(ResolverConfig::max_depth).
XPathDepth
The nesting of an XPath expression of the schema (an assertion, a
type alternative): xpath::depth::MAX_EXPRESSION_DEPTH.
Implementations§
Trait Implementations§
Source§impl Clone for SchemaLimit
impl Clone for SchemaLimit
impl Copy for SchemaLimit
Source§impl Debug for SchemaLimit
impl Debug for SchemaLimit
Source§impl Display for SchemaLimit
impl Display for SchemaLimit
impl Eq for SchemaLimit
Source§impl Hash for SchemaLimit
impl Hash for SchemaLimit
Source§impl PartialEq for SchemaLimit
impl PartialEq for SchemaLimit
impl StructuralPartialEq for SchemaLimit
Auto Trait Implementations§
impl Forget for SchemaLimit
impl Freeze for SchemaLimit
impl Move for SchemaLimit
impl RefUnwindSafe for SchemaLimit
impl Send for SchemaLimit
impl Sync for SchemaLimit
impl Unpin for SchemaLimit
impl UnsafeUnpin for SchemaLimit
impl UnwindSafe for SchemaLimit
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