Struct annotate_snippets::snippet::Annotation
source · pub struct Annotation<'a> {
pub id: Option<&'a str>,
pub label: Option<&'a str>,
pub annotation_type: AnnotationType,
}
Expand description
An annotation for a Snippet
.
Fields§
§id: Option<&'a str>
Identifier of the annotation. Usually error code like “E0308”.
label: Option<&'a str>
§annotation_type: AnnotationType
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Annotation<'a>
impl<'a> Send for Annotation<'a>
impl<'a> Sync for Annotation<'a>
impl<'a> Unpin for Annotation<'a>
impl<'a> UnwindSafe for Annotation<'a>
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