deepl_openapi/models/
get_languages_200_response_inner.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 GetLanguages200ResponseInner {
16    /// The language code of the given language.
17    #[serde(rename = "language")]
18    pub language: String,
19    /// Name of the language in English.
20    #[serde(rename = "name")]
21    pub name: String,
22    /// Denotes formality support in case of a target language listing.
23    #[serde(rename = "supports_formality", skip_serializing_if = "Option::is_none")]
24    pub supports_formality: Option<bool>,
25}
26
27impl GetLanguages200ResponseInner {
28    pub fn new(language: String, name: String) -> GetLanguages200ResponseInner {
29        GetLanguages200ResponseInner {
30            language,
31            name,
32            supports_formality: None,
33        }
34    }
35}
36
37