Enum rtdlib::types::LanguagePackStringValue [−][src]
pub enum LanguagePackStringValue {
GetLanguagePackString(GetLanguagePackString),
Deleted(LanguagePackStringValueDeleted),
Ordinary(LanguagePackStringValueOrdinary),
Pluralized(LanguagePackStringValuePluralized),
// some variants omitted
}
Expand description
Represents the value of a string in a language pack
Variants
Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. This is an offline method. Can be called before authorization. Can be called synchronously
Tuple Fields of GetLanguagePackString
A deleted language pack string, the value should be taken from the built-in english language pack
Tuple Fields of Deleted
An ordinary language pack string
Tuple Fields of Ordinary
A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info
Tuple Fields of Pluralized
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<LanguagePackStringValue, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<LanguagePackStringValue, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for LanguagePackStringValue
impl Send for LanguagePackStringValue
impl Sync for LanguagePackStringValue
impl Unpin for LanguagePackStringValue
impl UnwindSafe for LanguagePackStringValue
Blanket Implementations
Mutably borrows from an owned value. Read more