openapi_github/models/
dependabot_alert_security_vulnerability_first_patched_version.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/// DependabotAlertSecurityVulnerabilityFirstPatchedVersion : Details pertaining to the package version that patches this vulnerability.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DependabotAlertSecurityVulnerabilityFirstPatchedVersion {
17    /// The package version that patches this vulnerability.
18    #[serde(rename = "identifier")]
19    pub identifier: String,
20}
21
22impl DependabotAlertSecurityVulnerabilityFirstPatchedVersion {
23    /// Details pertaining to the package version that patches this vulnerability.
24    pub fn new(identifier: String) -> DependabotAlertSecurityVulnerabilityFirstPatchedVersion {
25        DependabotAlertSecurityVulnerabilityFirstPatchedVersion {
26            identifier,
27        }
28    }
29}
30