#[non_exhaustive]pub struct EmitOptions {
pub fallback_locale: Option<Locale>,
}Expand description
Emission options: opt-in fallback for missing target-locale mappings.
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_locale: Option<Locale>When a canonical identity has no spelling for the target locale, its
spelling in this declared locale is used instead. None (the default)
keeps missing mappings failing explicitly. The fallback choice is
visible in EmitOutput::fallback_ids.
Trait Implementations§
Source§impl Clone for EmitOptions
impl Clone for EmitOptions
Source§impl Debug for EmitOptions
impl Debug for EmitOptions
Source§impl Default for EmitOptions
impl Default for EmitOptions
impl Eq for EmitOptions
Source§impl PartialEq for EmitOptions
impl PartialEq for EmitOptions
impl StructuralPartialEq for EmitOptions
Auto Trait Implementations§
impl Freeze for EmitOptions
impl RefUnwindSafe for EmitOptions
impl Send for EmitOptions
impl Sync for EmitOptions
impl Unpin for EmitOptions
impl UnsafeUnpin for EmitOptions
impl UnwindSafe for EmitOptions
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