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
Auto Trait Implementations§
impl Freeze for LanguagePackStringValue
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