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
53
54
/*
* 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,
}
}
}