jira_api_v2/models/locale.rs
1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Locale : Details of a locale.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Locale {
17 /// The locale code. The Java the locale format is used: a two character language code (ISO 639), an underscore, and two letter country code (ISO 3166). For example, en\\_US represents a locale of English (United States). Required on create.
18 #[serde(rename = "locale", skip_serializing_if = "Option::is_none")]
19 pub locale: Option<String>,
20}
21
22impl Locale {
23 /// Details of a locale.
24 pub fn new() -> Locale {
25 Locale {
26 locale: None,
27 }
28 }
29}
30