1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* GitHub's official OpenAPI spec + Octokit extension
*
* OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
*
* The version of the OpenAPI document: 16.6.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CodeownersErrorsErrorsInner {
/// The line number where this errors occurs.
#[serde(rename = "line")]
pub line: i32,
/// The column number where this errors occurs.
#[serde(rename = "column")]
pub column: i32,
/// The contents of the line where the error occurs.
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
/// The type of error.
#[serde(rename = "kind")]
pub kind: String,
/// Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.
#[serde(rename = "suggestion", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub suggestion: Option<Option<String>>,
/// A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting).
#[serde(rename = "message")]
pub message: String,
/// The path of the file where the error occured.
#[serde(rename = "path")]
pub path: String,
}
impl CodeownersErrorsErrorsInner {
pub fn new(line: i32, column: i32, kind: String, message: String, path: String) -> CodeownersErrorsErrorsInner {
CodeownersErrorsErrorsInner {
line,
column,
source: None,
kind,
suggestion: None,
message,
path,
}
}
}