pub struct ParseOutput {
pub schema: Schema,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of lowering a shapes graph.
Fields§
§schema: Schema§diagnostics: Vec<Diagnostic>Implementations§
Source§impl ParseOutput
impl ParseOutput
Sourcepub fn require_valid(&self) -> Result<(), ParseError>
pub fn require_valid(&self) -> Result<(), ParseError>
Reject a shapes graph whose lowering reported an error.
Unsupported features remain a caller policy choice, but an invalid constraint or rule must not be normalized away and treated as absent.
Auto Trait Implementations§
impl Freeze for ParseOutput
impl RefUnwindSafe for ParseOutput
impl Send for ParseOutput
impl Sync for ParseOutput
impl Unpin for ParseOutput
impl UnsafeUnpin for ParseOutput
impl UnwindSafe for ParseOutput
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