pub enum SchemaNode {
Title,
Frontmatter,
FrontmatterSchemaDeclaration,
FrontmatterSchemaDocument,
Rule(RulePath),
Constraint(ConstraintPath),
}Expand description
The address of a semantic schema node with retained source provenance.
Variants§
Title
The optional title matcher.
Frontmatter
The normalized frontmatter policy object.
FrontmatterSchemaDeclaration
The policy’s schema value in the primary Outlint schema source.
This is either the linked schema path or the complete inline mapping.
FrontmatterSchemaDocument
The parsed JSON Schema root document.
For a linked schema this points into the external source while
Self::FrontmatterSchemaDeclaration remains in the primary source.
For an inline schema both nodes cover its mapping in the primary source.
Rule(RulePath)
A section rule at a structural path.
Constraint(ConstraintPath)
A constraint at a structural path.
Trait Implementations§
Source§impl Clone for SchemaNode
impl Clone for SchemaNode
Source§fn clone(&self) -> SchemaNode
fn clone(&self) -> SchemaNode
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 moreSource§impl Debug for SchemaNode
impl Debug for SchemaNode
impl Eq for SchemaNode
Source§impl Hash for SchemaNode
impl Hash for SchemaNode
Source§impl Ord for SchemaNode
impl Ord for SchemaNode
Source§fn cmp(&self, other: &SchemaNode) -> Ordering
fn cmp(&self, other: &SchemaNode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SchemaNode
impl PartialEq for SchemaNode
Source§impl PartialOrd for SchemaNode
impl PartialOrd for SchemaNode
impl StructuralPartialEq for SchemaNode
Auto Trait Implementations§
impl Freeze for SchemaNode
impl RefUnwindSafe for SchemaNode
impl Send for SchemaNode
impl Sync for SchemaNode
impl Unpin for SchemaNode
impl UnsafeUnpin for SchemaNode
impl UnwindSafe for SchemaNode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.