pub struct LanguagePackInfo {
Show 13 fields pub id: String, pub base_language_pack_id: String, pub name: String, pub native_name: String, pub plural_code: String, pub is_official: bool, pub is_rtl: bool, pub is_beta: bool, pub is_installed: bool, pub total_string_count: i32, pub translated_string_count: i32, pub local_string_count: i32, pub translation_url: String,
}
Expand description

Contains information about a language pack

Fields§

§id: String

Unique language pack identifier

§base_language_pack_id: String

Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it must be fetched from base language pack. Unsupported in custom language packs

§name: String

Language name

§native_name: String

Name of the language in that language

§plural_code: String

A language code to be used to apply plural forms. See https:www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information

§is_official: bool

True, if the language pack is official

§is_rtl: bool

True, if the language pack strings are RTL

§is_beta: bool

True, if the language pack is a beta language pack

§is_installed: bool

True, if the language pack is installed by the current user

§total_string_count: i32

Total number of non-deleted strings from the language pack

§translated_string_count: i32

Total number of translated strings from the language pack

§local_string_count: i32

Total number of non-deleted strings from the language pack available locally

§translation_url: String

Link to language translation interface; empty for custom local language packs

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.