appstream/language.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Default)]
4/// Defines how well a language is supported by the component.
5/// It provides access to a the locale and the percentage of the translation completion.
6pub struct Language {
7 #[serde(default, skip_serializing_if = "Option::is_none")]
8 /// The percentage of translation completion.
9 pub percentage: Option<u32>,
10 /// The language locale.
11 pub locale: String,
12}