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};

/// CopilotUsageMetricsBreakdownInner : Breakdown of Copilot usage by editor for this language
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CopilotUsageMetricsBreakdownInner {
    /// The language in which Copilot suggestions were shown to users in the specified editor.
    #[serde(rename = "language", skip_serializing_if = "Option::is_none")]
    pub language: Option<String>,
    /// The editor in which Copilot suggestions were shown to users for the specified language.
    #[serde(rename = "editor", skip_serializing_if = "Option::is_none")]
    pub editor: Option<String>,
    /// The number of Copilot suggestions shown to users in the editor specified during the day specified.
    #[serde(rename = "suggestions_count", skip_serializing_if = "Option::is_none")]
    pub suggestions_count: Option<i32>,
    /// The number of Copilot suggestions accepted by users in the editor specified during the day specified.
    #[serde(rename = "acceptances_count", skip_serializing_if = "Option::is_none")]
    pub acceptances_count: Option<i32>,
    /// The number of lines of code suggested by Copilot in the editor specified during the day specified.
    #[serde(rename = "lines_suggested", skip_serializing_if = "Option::is_none")]
    pub lines_suggested: Option<i32>,
    /// The number of lines of code accepted by users in the editor specified during the day specified.
    #[serde(rename = "lines_accepted", skip_serializing_if = "Option::is_none")]
    pub lines_accepted: Option<i32>,
    /// The number of users who were shown Copilot completion suggestions in the editor specified during the day specified.
    #[serde(rename = "active_users", skip_serializing_if = "Option::is_none")]
    pub active_users: Option<i32>,
}

impl CopilotUsageMetricsBreakdownInner {
    /// Breakdown of Copilot usage by editor for this language
    pub fn new() -> CopilotUsageMetricsBreakdownInner {
        CopilotUsageMetricsBreakdownInner {
            language: None,
            editor: None,
            suggestions_count: None,
            acceptances_count: None,
            lines_suggested: None,
            lines_accepted: None,
            active_users: None,
        }
    }
}