Struct veloren_client_i18n::LanguageMetadata
source · pub struct LanguageMetadata {
pub language_name: String,
pub language_identifier: String,
}
Expand description
How a language can be described
Fields§
§language_name: String
A human friendly language name (e.g. “English (US)”)
language_identifier: String
A short text identifier for this language (e.g. “en_US”)
On the opposite of language_name
that can change freely,
language_identifier
value shall be stable in time as it
is used by setting components to store the language
selected by the user.
Trait Implementations§
source§impl Clone for LanguageMetadata
impl Clone for LanguageMetadata
source§fn clone(&self) -> LanguageMetadata
fn clone(&self) -> LanguageMetadata
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 LanguageMetadata
impl Debug for LanguageMetadata
source§impl<'de> Deserialize<'de> for LanguageMetadata
impl<'de> Deserialize<'de> for LanguageMetadata
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 for LanguageMetadata
impl PartialEq for LanguageMetadata
source§fn eq(&self, other: &LanguageMetadata) -> bool
fn eq(&self, other: &LanguageMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LanguageMetadata
impl Serialize for LanguageMetadata
impl Eq for LanguageMetadata
impl StructuralPartialEq for LanguageMetadata
Auto Trait Implementations§
impl Freeze for LanguageMetadata
impl RefUnwindSafe for LanguageMetadata
impl Send for LanguageMetadata
impl Sync for LanguageMetadata
impl Unpin for LanguageMetadata
impl UnwindSafe for LanguageMetadata
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more