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

GetLanguagePackString

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

0: GetLanguagePackString
Deleted

A deleted language pack string, the value should be taken from the built-in english language pack

Tuple Fields of Deleted

0: LanguagePackStringValueDeleted
Ordinary

An ordinary language pack string

Tuple Fields of Ordinary

0: LanguagePackStringValueOrdinary
Pluralized

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

0: LanguagePackStringValuePluralized

Implementations

Trait Implementations

Performs the conversion.

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

Return td type to json string

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.