#[non_exhaustive]pub struct Loaded {
pub schema: Schema<Constraint>,
pub findings: Vec<Finding>,
}Expand description
What load_schema returns: the schema, and what the loader noticed on
the way that is worth telling the author without refusing the document.
#[non_exhaustive]: read the fields; build one only through
load_schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema: Schema<Constraint>The rules of every document reached, spliced in written order.
findings: Vec<Finding>Every Finding over every document reached — the vocabulary lint
over each vocabulary document, the schema-document lint over each
rule, and the one finding that needs the whole schema,
FindingKind::Shadowed. Each names its document.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Loaded
impl RefUnwindSafe for Loaded
impl Send for Loaded
impl Sync for Loaded
impl Unpin for Loaded
impl UnsafeUnpin for Loaded
impl UnwindSafe for Loaded
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