pub struct Annotations<'a> {
    pub path: Cow<'a, str>,
    pub start_line: i64,
    pub end_line: i64,
    pub start_column: Option<i64>,
    pub end_column: Option<i64>,
    pub annotation_level: Cow<'a, str>,
    pub message: Cow<'a, str>,
    pub title: Option<Cow<'a, str>>,
    pub raw_details: Option<Cow<'a, str>>,
    pub additionalProperties: HashMap<Cow<'a, str>, Value>,
}

Fields

path: Cow<'a, str>

The path of the file to add an annotation to. For example, assets/css/main.css.

start_line: i64

The start line of the annotation.

end_line: i64

The end line of the annotation.

start_column: Option<i64>

The start column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.

end_column: Option<i64>

The end column of the annotation. Annotations only support start_column and end_column on the same line. Omit this parameter if start_line and end_line have different values.

annotation_level: Cow<'a, str>

The level of the annotation. Can be one of notice, warning, or failure.

message: Cow<'a, str>

A short description of the feedback for these lines of code. The maximum size is 64 KB.

title: Option<Cow<'a, str>>

The title that represents the annotation. The maximum size is 255 characters.

raw_details: Option<Cow<'a, str>>

Details about this annotation. The maximum size is 64 KB.

additionalProperties: HashMap<Cow<'a, str>, Value>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more