deepl_openapi/models/
get_usage_200_response.rs

1/*
2 * DeepL API Documentation
3 *
4 * The DeepL API provides programmatic access to DeepL’s machine translation technology.
5 *
6 * The version of the OpenAPI document: 2.7.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct GetUsage200Response {
16    /// Characters translated so far in the current billing period.
17    #[serde(rename = "character_count", skip_serializing_if = "Option::is_none")]
18    pub character_count: Option<i64>,
19    /// Current maximum number of characters that can be translated per billing period.
20    #[serde(rename = "character_limit", skip_serializing_if = "Option::is_none")]
21    pub character_limit: Option<i64>,
22    /// Documents translated so far in the current billing period.
23    #[serde(rename = "document_limit", skip_serializing_if = "Option::is_none")]
24    pub document_limit: Option<i64>,
25    /// Current maximum number of documents that can be translated per billing period.
26    #[serde(rename = "document_count", skip_serializing_if = "Option::is_none")]
27    pub document_count: Option<i64>,
28    /// Documents translated by all users in the team so far in the current billing period.
29    #[serde(rename = "team_document_limit", skip_serializing_if = "Option::is_none")]
30    pub team_document_limit: Option<i64>,
31    /// Current maximum number of documents that can be translated by the team per billing period.
32    #[serde(rename = "team_document_count", skip_serializing_if = "Option::is_none")]
33    pub team_document_count: Option<i64>,
34}
35
36impl GetUsage200Response {
37    pub fn new() -> GetUsage200Response {
38        GetUsage200Response {
39            character_count: None,
40            character_limit: None,
41            document_limit: None,
42            document_count: None,
43            team_document_limit: None,
44            team_document_count: None,
45        }
46    }
47}
48
49