pub struct Diagnostic {
pub node: NodeId,
pub keyword: StrRef,
pub json_pointer: StrRef,
pub source_span: Option<Span>,
pub reason: UnsupportedReason,
}Expand description
One rejected occurrence: the node it produced, the keyword, its RFC 6901 pointer, and the machine reason. Keyed by occurrence; never hashed into the content address.
Fields§
§node: NodeIdThe Unsupported node this occurrence lowered to.
keyword: StrRefThe offending keyword, as an interned string reference.
json_pointer: StrRefThe RFC 6901 pointer to the occurrence, as an interned string reference.
source_span: Option<Span>The source span, when the frontend tracked one.
reason: UnsupportedReasonThe machine-stable reason.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for Diagnostic
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Diagnostic
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§impl Debug for Diagnostic
impl Debug for Diagnostic
Source§impl<__Context> Decode<__Context> for Diagnostic
impl<__Context> Decode<__Context> for Diagnostic
Source§impl Encode for Diagnostic
impl Encode for Diagnostic
impl Eq for Diagnostic
Source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnostic
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