pub struct ParsedSchema {
pub schema: Schema,
pub diagnostics: Vec<ValidationError>,
}Expand description
The result of a resilient parse (Parser::parse_recover): a best-effort
(possibly partial) Schema plus every diagnostic collected along the way —
syntax errors recovered from during parsing and the semantic diagnostics
from crate::validate::validate_schema — each positioned and sorted by
source location. This is the shape the LSP consumes to report diagnostics and
offer symbols on a buffer that does not fully parse.
Fields§
§schema: Schema§diagnostics: Vec<ValidationError>Trait Implementations§
Source§impl Clone for ParsedSchema
impl Clone for ParsedSchema
Source§fn clone(&self) -> ParsedSchema
fn clone(&self) -> ParsedSchema
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 moreAuto Trait Implementations§
impl Freeze for ParsedSchema
impl RefUnwindSafe for ParsedSchema
impl Send for ParsedSchema
impl Sync for ParsedSchema
impl Unpin for ParsedSchema
impl UnsafeUnpin for ParsedSchema
impl UnwindSafe for ParsedSchema
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