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
sourceimpl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more