Struct icu_provider::DataKeyMetadata
source · #[non_exhaustive]pub struct DataKeyMetadata {
pub fallback_priority: FallbackPriority,
pub extension_key: Option<Key>,
pub fallback_supplement: Option<FallbackSupplement>,
}
Expand description
Metadata statically associated with a particular DataKey
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.fallback_priority: FallbackPriority
What to prioritize when fallbacking on this DataKey
.
extension_key: Option<Key>
A Unicode extension keyword to consider when loading data for this DataKey
.
fallback_supplement: Option<FallbackSupplement>
Optional choice for additional fallbacking data required for loading this marker.
For more information, see LocaleFallbackConfig::fallback_supplement
.
Implementations§
source§impl DataKeyMetadata
impl DataKeyMetadata
sourcepub const fn const_default() -> Self
pub const fn const_default() -> Self
Const-friendly version of Default::default
.
Trait Implementations§
source§impl Clone for DataKeyMetadata
impl Clone for DataKeyMetadata
source§fn clone(&self) -> DataKeyMetadata
fn clone(&self) -> DataKeyMetadata
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 DataKeyMetadata
impl Debug for DataKeyMetadata
source§impl Default for DataKeyMetadata
impl Default for DataKeyMetadata
source§impl Ord for DataKeyMetadata
impl Ord for DataKeyMetadata
source§fn cmp(&self, other: &DataKeyMetadata) -> Ordering
fn cmp(&self, other: &DataKeyMetadata) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DataKeyMetadata> for DataKeyMetadata
impl PartialEq<DataKeyMetadata> for DataKeyMetadata
source§fn eq(&self, other: &DataKeyMetadata) -> bool
fn eq(&self, other: &DataKeyMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DataKeyMetadata> for DataKeyMetadata
impl PartialOrd<DataKeyMetadata> for DataKeyMetadata
source§fn partial_cmp(&self, other: &DataKeyMetadata) -> Option<Ordering>
fn partial_cmp(&self, other: &DataKeyMetadata) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more