Enum tdlib::enums::LanguagePackStringValue
source · pub enum LanguagePackStringValue {
Ordinary(LanguagePackStringValueOrdinary),
Pluralized(LanguagePackStringValuePluralized),
Deleted,
}Variants§
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 information
Deleted
A deleted language pack string, the value must be taken from the built-in English language pack
Trait Implementations§
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<'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
source§impl PartialEq<LanguagePackStringValue> for LanguagePackStringValue
impl PartialEq<LanguagePackStringValue> for LanguagePackStringValue
source§fn eq(&self, other: &LanguagePackStringValue) -> bool
fn eq(&self, other: &LanguagePackStringValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for LanguagePackStringValue
impl Serialize for LanguagePackStringValue
impl StructuralPartialEq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more