pub struct Region {
    pub byte_length: Option<i64>,
    pub byte_offset: Option<i64>,
    pub char_length: Option<i64>,
    pub char_offset: Option<i64>,
    pub end_column: Option<i64>,
    pub end_line: Option<i64>,
    pub message: Option<Message>,
    pub properties: Option<PropertyBag>,
    pub snippet: Option<ArtifactContent>,
    pub source_language: Option<String>,
    pub start_column: Option<i64>,
    pub start_line: Option<i64>,
}
Expand description

A region within an artifact where a result was detected.

Specifies a portion of the artifact that encloses the region. Allows a viewer to display additional context around the region.

Specifies a portion of the artifact.

The region of the artifact to delete.

Fields

byte_length: Option<i64>

The length of the region in bytes.

byte_offset: Option<i64>

The zero-based offset from the beginning of the artifact of the first byte in the region.

char_length: Option<i64>

The length of the region in characters.

char_offset: Option<i64>

The zero-based offset from the beginning of the artifact of the first character in the region.

end_column: Option<i64>

The column number of the character following the end of the region.

end_line: Option<i64>

The line number of the last character in the region.

message: Option<Message>

A message relevant to the region.

properties: Option<PropertyBag>

Key/value pairs that provide additional information about the region.

snippet: Option<ArtifactContent>

The portion of the artifact contents within the specified region.

source_language: Option<String>

Specifies the source language, if any, of the portion of the artifact specified by the region object.

start_column: Option<i64>

The column number of the first character in the region.

start_line: Option<i64>

The line number of the first character in the region.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

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.

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