Enum rust_tdlib::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(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. Can be called synchronously
Deleted(LanguagePackStringValueDeleted)
A deleted language pack string, the value should be taken from the built-in english language pack
Ordinary(LanguagePackStringValueOrdinary)
An ordinary language pack string
Pluralized(LanguagePackStringValuePluralized)
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
Implementations
Trait Implementations
Performs the conversion.
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
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