pub struct CompileCatalogArtifactOptions<'a> {
pub requested_locale: &'a str,
pub source_locale: &'a str,
pub fallback_chain: &'a [String],
pub key_strategy: CompiledKeyStrategy,
pub source_fallback: bool,
pub strict_icu: bool,
pub semantics: CatalogSemantics,
}Expand description
Options controlling high-level compiled catalog artifact generation.
Fields§
§requested_locale: &'a strLocale for which the runtime artifact should be produced.
source_locale: &'a strSource locale used for explicit source fallback behavior.
fallback_chain: &'a [String]Ordered fallback locales consulted after the requested locale.
key_strategy: CompiledKeyStrategyBuilt-in strategy used to derive stable runtime keys.
source_fallback: boolWhether source text should be used when no non-source translation exists.
strict_icu: boolWhether invalid final ICU messages should fail compilation instead of producing diagnostics.
semantics: CatalogSemanticsHigh-level semantics used by the input catalog set.
Trait Implementations§
Source§impl<'a> Clone for CompileCatalogArtifactOptions<'a>
impl<'a> Clone for CompileCatalogArtifactOptions<'a>
Source§fn clone(&self) -> CompileCatalogArtifactOptions<'a>
fn clone(&self) -> CompileCatalogArtifactOptions<'a>
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<'a> Debug for CompileCatalogArtifactOptions<'a>
impl<'a> Debug for CompileCatalogArtifactOptions<'a>
Source§impl Default for CompileCatalogArtifactOptions<'_>
impl Default for CompileCatalogArtifactOptions<'_>
Source§fn default() -> CompileCatalogArtifactOptions<'_>
fn default() -> CompileCatalogArtifactOptions<'_>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for CompileCatalogArtifactOptions<'a>
impl<'a> PartialEq for CompileCatalogArtifactOptions<'a>
Source§fn eq(&self, other: &CompileCatalogArtifactOptions<'a>) -> bool
fn eq(&self, other: &CompileCatalogArtifactOptions<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for CompileCatalogArtifactOptions<'a>
impl<'a> StructuralPartialEq for CompileCatalogArtifactOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for CompileCatalogArtifactOptions<'a>
impl<'a> RefUnwindSafe for CompileCatalogArtifactOptions<'a>
impl<'a> Send for CompileCatalogArtifactOptions<'a>
impl<'a> Sync for CompileCatalogArtifactOptions<'a>
impl<'a> Unpin for CompileCatalogArtifactOptions<'a>
impl<'a> UnsafeUnpin for CompileCatalogArtifactOptions<'a>
impl<'a> UnwindSafe for CompileCatalogArtifactOptions<'a>
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