#[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
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 5 bytes