#[non_exhaustive]pub struct LanguageMetadata {
pub models: HashMap<String, ModelMetadata>,
/* private fields */
}Expand description
The metadata about locales available in a given region. Currently this is just the models that are available for each locale
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.models: HashMap<String, ModelMetadata>Map of locale (language code) -> models
Implementations§
Source§impl LanguageMetadata
impl LanguageMetadata
pub fn new() -> Self
Sourcepub fn set_models<T, K, V>(self, v: T) -> Self
pub fn set_models<T, K, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for LanguageMetadata
impl Clone for LanguageMetadata
Source§fn clone(&self) -> LanguageMetadata
fn clone(&self) -> LanguageMetadata
Returns a duplicate 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 Default for LanguageMetadata
impl Default for LanguageMetadata
Source§fn default() -> LanguageMetadata
fn default() -> LanguageMetadata
Returns the “default value” for a type. Read more
Source§impl Message for LanguageMetadata
impl Message for LanguageMetadata
Source§impl PartialEq for LanguageMetadata
impl PartialEq 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§
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