openapi_github/models/
code_scanning_alert_location.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CodeScanningAlertLocation : Describe a region within a file for the alert.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CodeScanningAlertLocation {
17    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
18    pub path: Option<String>,
19    #[serde(rename = "start_line", skip_serializing_if = "Option::is_none")]
20    pub start_line: Option<i32>,
21    #[serde(rename = "end_line", skip_serializing_if = "Option::is_none")]
22    pub end_line: Option<i32>,
23    #[serde(rename = "start_column", skip_serializing_if = "Option::is_none")]
24    pub start_column: Option<i32>,
25    #[serde(rename = "end_column", skip_serializing_if = "Option::is_none")]
26    pub end_column: Option<i32>,
27}
28
29impl CodeScanningAlertLocation {
30    /// Describe a region within a file for the alert.
31    pub fn new() -> CodeScanningAlertLocation {
32        CodeScanningAlertLocation {
33            path: None,
34            start_line: None,
35            end_line: None,
36            start_column: None,
37            end_column: None,
38        }
39    }
40}
41