Struct annotate_snippets::snippet::Annotation[][src]

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.