pub struct LocaleCoverage {
pub locale: String,
pub total_keys: usize,
pub translatable_keys: usize,
pub translated: usize,
pub percentage: f64,
}Expand description
Per-locale translation coverage statistics.
Fields§
§locale: StringLocale code
total_keys: usizeTotal keys in the file (including non-translatable)
translatable_keys: usizeNumber of keys that should be translated
translated: usizeNumber of keys with translations in this locale
percentage: f64Translation completion percentage (0.0–100.0)
Trait Implementations§
Source§impl Clone for LocaleCoverage
impl Clone for LocaleCoverage
Source§fn clone(&self) -> LocaleCoverage
fn clone(&self) -> LocaleCoverage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocaleCoverage
impl Debug for LocaleCoverage
Source§impl<'de> Deserialize<'de> for LocaleCoverage
impl<'de> Deserialize<'de> for LocaleCoverage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for LocaleCoverage
impl JsonSchema for LocaleCoverage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for LocaleCoverage
impl RefUnwindSafe for LocaleCoverage
impl Send for LocaleCoverage
impl Sync for LocaleCoverage
impl Unpin for LocaleCoverage
impl UnsafeUnpin for LocaleCoverage
impl UnwindSafe for LocaleCoverage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more