pub struct I18nConfig {
pub locales: Vec<String>,
pub default: String,
pub messages: HashMap<String, Value>,
pub versions: HashMap<String, String>,
}Expand description
Runtime i18n configuration loaded from build output.
Fields§
§locales: Vec<String>§default: String§messages: HashMap<String, Value>Locale -> messages JSON value (read from locales/{locale}.json)
versions: HashMap<String, String>Per-locale content hash for cache invalidation
Trait Implementations§
Source§impl Clone for I18nConfig
impl Clone for I18nConfig
Source§fn clone(&self) -> I18nConfig
fn clone(&self) -> I18nConfig
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 moreAuto Trait Implementations§
impl Freeze for I18nConfig
impl RefUnwindSafe for I18nConfig
impl Send for I18nConfig
impl Sync for I18nConfig
impl Unpin for I18nConfig
impl UnsafeUnpin for I18nConfig
impl UnwindSafe for I18nConfig
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