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
sourceimpl AsRef<LanguagePackStringValue> for LanguagePackStringValue
impl AsRef<LanguagePackStringValue> for LanguagePackStringValue
sourcefn as_ref(&self) -> &LanguagePackStringValue
fn as_ref(&self) -> &LanguagePackStringValue
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for LanguagePackStringValue
impl Clone for LanguagePackStringValue
sourcefn clone(&self) -> LanguagePackStringValue
fn clone(&self) -> LanguagePackStringValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LanguagePackStringValue
impl Debug for LanguagePackStringValue
sourceimpl Default for LanguagePackStringValue
impl Default for LanguagePackStringValue
sourceimpl<'de> Deserialize<'de> for LanguagePackStringValue
impl<'de> Deserialize<'de> for LanguagePackStringValue
sourcefn 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
sourceimpl Serialize for LanguagePackStringValue
impl Serialize for LanguagePackStringValue
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more