pub struct CombineCatalogOptions<'a> {
pub inputs: &'a [CatalogCombineInput<'a>],
pub locale: Option<&'a str>,
pub source_locale: &'a str,
pub mode: CatalogMode,
pub conflict_strategy: CatalogConflictStrategy,
pub selection: CatalogCombineSelection,
pub order_by: OrderBy,
pub include_origins: bool,
pub include_line_numbers: bool,
pub include_obsolete: bool,
}Expand description
Options for combining multiple catalogs into one deterministic catalog.
Fields§
§inputs: &'a [CatalogCombineInput<'a>]Input catalogs in precedence order.
locale: Option<&'a str>Locale of the combined catalog. When None, Ferrocat uses the first input locale if present.
source_locale: &'a strSource locale used for source-side semantics and validation.
mode: CatalogModeHigh-level catalog mode used when reading inputs and rendering the result.
conflict_strategy: CatalogConflictStrategyStrategy for resolving conflicting non-empty translations.
selection: CatalogCombineSelectionMessage identity selection rule applied after all inputs are read.
order_by: OrderBySort order for the final rendered catalog.
include_origins: boolWhether source origins should be rendered as references.
include_line_numbers: boolWhether rendered references should include line numbers.
include_obsolete: boolWhether obsolete definitions should participate in the combine operation.
Implementations§
Source§impl<'a> CombineCatalogOptions<'a>
impl<'a> CombineCatalogOptions<'a>
Sourcepub fn new(
inputs: &'a [CatalogCombineInput<'a>],
source_locale: &'a str,
) -> CombineCatalogOptions<'a>
pub fn new( inputs: &'a [CatalogCombineInput<'a>], source_locale: &'a str, ) -> CombineCatalogOptions<'a>
Creates combine options with required fields set.
Optional fields use the same defaults that the previous Default
implementation provided.
Trait Implementations§
Source§impl<'a> Clone for CombineCatalogOptions<'a>
impl<'a> Clone for CombineCatalogOptions<'a>
Source§fn clone(&self) -> CombineCatalogOptions<'a>
fn clone(&self) -> CombineCatalogOptions<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for CombineCatalogOptions<'a>
impl<'a> Debug for CombineCatalogOptions<'a>
impl<'a> Eq for CombineCatalogOptions<'a>
Source§impl<'a> PartialEq for CombineCatalogOptions<'a>
impl<'a> PartialEq for CombineCatalogOptions<'a>
Source§fn eq(&self, other: &CombineCatalogOptions<'a>) -> bool
fn eq(&self, other: &CombineCatalogOptions<'a>) -> bool
self and other values to be equal, and is used by ==.