openapi-github 0.1.0

OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
Documentation
/*
 * 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};

/// SecretScanningLocationWikiCommit : Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SecretScanningLocationWikiCommit {
    /// The file path of the wiki page
    #[serde(rename = "path")]
    pub path: String,
    /// Line number at which the secret starts in the file
    #[serde(rename = "start_line")]
    pub start_line: f64,
    /// Line number at which the secret ends in the file
    #[serde(rename = "end_line")]
    pub end_line: f64,
    /// The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII.
    #[serde(rename = "start_column")]
    pub start_column: f64,
    /// The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII.
    #[serde(rename = "end_column")]
    pub end_column: f64,
    /// SHA-1 hash ID of the associated blob
    #[serde(rename = "blob_sha")]
    pub blob_sha: String,
    /// The GitHub URL to get the associated wiki page
    #[serde(rename = "page_url")]
    pub page_url: String,
    /// SHA-1 hash ID of the associated commit
    #[serde(rename = "commit_sha")]
    pub commit_sha: String,
    /// The GitHub URL to get the associated wiki commit
    #[serde(rename = "commit_url")]
    pub commit_url: String,
}

impl SecretScanningLocationWikiCommit {
    /// Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.
    pub fn new(path: String, start_line: f64, end_line: f64, start_column: f64, end_column: f64, blob_sha: String, page_url: String, commit_sha: String, commit_url: String) -> SecretScanningLocationWikiCommit {
        SecretScanningLocationWikiCommit {
            path,
            start_line,
            end_line,
            start_column,
            end_column,
            blob_sha,
            page_url,
            commit_sha,
            commit_url,
        }
    }
}