#[non_exhaustive]pub struct DataKeyMetadata {
    pub fallback_priority: LocaleFallbackPriority,
    pub extension_key: Option<Key>,
    pub fallback_supplement: Option<LocaleFallbackSupplement>,
    pub singleton: bool,
}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: LocaleFallbackPriorityWhat 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<LocaleFallbackSupplement>Optional choice for additional fallbacking data required for loading this marker.
For more information, see LocaleFallbackConfig::fallback_supplement.
singleton: boolWhether the key has a singleton value, as opposed to per-locale values. Singleton keys behave differently, e.g. they never perform fallback, and can be optimized in data providers.
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 for DataKeyMetadata
 
impl PartialEq for DataKeyMetadata
Source§impl PartialOrd for DataKeyMetadata
 
impl PartialOrd for DataKeyMetadata
impl Copy for DataKeyMetadata
impl Eq for DataKeyMetadata
impl StructuralPartialEq for DataKeyMetadata
Auto Trait Implementations§
impl Freeze for DataKeyMetadata
impl RefUnwindSafe for DataKeyMetadata
impl Send for DataKeyMetadata
impl Sync for DataKeyMetadata
impl Unpin for DataKeyMetadata
impl UnwindSafe for DataKeyMetadata
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