deepl_openapi/models/
get_languages_200_response_inner.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct GetLanguages200ResponseInner {
16 #[serde(rename = "language")]
18 pub language: String,
19 #[serde(rename = "name")]
21 pub name: String,
22 #[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