pub struct ChecksCreateRequestOutputAnnotationsInner {
pub path: String,
pub start_line: i32,
pub end_line: i32,
pub start_column: Option<i32>,
pub end_column: Option<i32>,
pub annotation_level: AnnotationLevel,
pub message: String,
pub title: Option<String>,
pub raw_details: Option<String>,
}
Fields§
§path: String
The path of the file to add an annotation to. For example, assets/css/main.css
.
start_line: i32
The start line of the annotation. Line numbers start at 1.
end_line: i32
The end line of the annotation.
start_column: Option<i32>
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. Column numbers start at 1.
end_column: Option<i32>
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: AnnotationLevel
The level of the annotation.
message: String
A short description of the feedback for these lines of code. The maximum size is 64 KB.
title: Option<String>
The title that represents the annotation. The maximum size is 255 characters.
raw_details: Option<String>
Details about this annotation. The maximum size is 64 KB.
Implementations§
Source§impl ChecksCreateRequestOutputAnnotationsInner
impl ChecksCreateRequestOutputAnnotationsInner
pub fn new( path: String, start_line: i32, end_line: i32, annotation_level: AnnotationLevel, message: String, ) -> ChecksCreateRequestOutputAnnotationsInner
Trait Implementations§
Source§impl Clone for ChecksCreateRequestOutputAnnotationsInner
impl Clone for ChecksCreateRequestOutputAnnotationsInner
Source§fn clone(&self) -> ChecksCreateRequestOutputAnnotationsInner
fn clone(&self) -> ChecksCreateRequestOutputAnnotationsInner
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ChecksCreateRequestOutputAnnotationsInner
impl Default for ChecksCreateRequestOutputAnnotationsInner
Source§fn default() -> ChecksCreateRequestOutputAnnotationsInner
fn default() -> ChecksCreateRequestOutputAnnotationsInner
Source§impl<'de> Deserialize<'de> for ChecksCreateRequestOutputAnnotationsInner
impl<'de> Deserialize<'de> for ChecksCreateRequestOutputAnnotationsInner
Source§fn 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>,
Source§impl PartialEq for ChecksCreateRequestOutputAnnotationsInner
impl PartialEq for ChecksCreateRequestOutputAnnotationsInner
Source§fn eq(&self, other: &ChecksCreateRequestOutputAnnotationsInner) -> bool
fn eq(&self, other: &ChecksCreateRequestOutputAnnotationsInner) -> bool
self
and other
values to be equal, and is used by ==
.