Enum rust_tdlib::types::LanguagePackStringValue
source · 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 must 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§
source§impl AsRef<LanguagePackStringValue> for LanguagePackStringValue
impl AsRef<LanguagePackStringValue> for LanguagePackStringValue
source§fn as_ref(&self) -> &LanguagePackStringValue
fn as_ref(&self) -> &LanguagePackStringValue
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for LanguagePackStringValue
impl Clone for LanguagePackStringValue
source§fn clone(&self) -> LanguagePackStringValue
fn clone(&self) -> LanguagePackStringValue
Returns a copy 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 LanguagePackStringValue
impl Debug for LanguagePackStringValue
source§impl Default for LanguagePackStringValue
impl Default for LanguagePackStringValue
source§fn default() -> LanguagePackStringValue
fn default() -> LanguagePackStringValue
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LanguagePackStringValue
impl<'de> Deserialize<'de> for LanguagePackStringValue
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