pub struct Locales {
pub default: String,
pub other: Vec<String>,
pub using_i18n: bool,
}
Expand description
Defines app information about i18n, specifically about which locales are supported.
Fields§
§default: String
The default locale, which will be used as a fallback if the user’s locale can’t be extracted. This will be built for at build-time.
other: Vec<String>
All other supported locales, which will all be built at build time.
using_i18n: bool
Whether or not the user is actually using i18n. This is set here because most things that need locale data also need it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Locales
impl Send for Locales
impl Sync for Locales
impl Unpin for Locales
impl UnwindSafe for Locales
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