pub struct UpdateCatalogOptions<'a> {Show 14 fields
pub locale: Option<&'a str>,
pub source_locale: &'a str,
pub input: CatalogUpdateInput,
pub existing: Option<&'a str>,
pub storage_format: CatalogStorageFormat,
pub semantics: CatalogSemantics,
pub plural_encoding: PluralEncoding,
pub obsolete_strategy: ObsoleteStrategy,
pub overwrite_source_translations: bool,
pub order_by: OrderBy,
pub include_origins: bool,
pub include_line_numbers: bool,
pub print_placeholders_in_comments: PlaceholderCommentMode,
pub custom_header_attributes: Option<&'a BTreeMap<String, String>>,
}Expand description
Options for in-memory catalog updates.
Fields§
§locale: Option<&'a str>Locale of the catalog being updated. When None, Ferrocat infers it from the existing file.
source_locale: &'a strSource locale used for source-side semantics and fallback handling.
input: CatalogUpdateInputExtracted messages to merge into the catalog.
existing: Option<&'a str>Existing catalog content, when updating an in-memory catalog.
storage_format: CatalogStorageFormatStorage format used when reading existing content and rendering the result.
semantics: CatalogSemanticsHigh-level semantics used when parsing, merging, and rendering the catalog.
plural_encoding: PluralEncodingTarget plural representation for the rendered PO file.
obsolete_strategy: ObsoleteStrategyStrategy for messages absent from the extracted input.
overwrite_source_translations: boolWhether source-locale translations should be refreshed from the extracted source strings.
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.
print_placeholders_in_comments: PlaceholderCommentModeControls emission of placeholder comments.
custom_header_attributes: Option<&'a BTreeMap<String, String>>Optional additional header attributes to inject or override.
Trait Implementations§
Source§impl<'a> Clone for UpdateCatalogOptions<'a>
impl<'a> Clone for UpdateCatalogOptions<'a>
Source§fn clone(&self) -> UpdateCatalogOptions<'a>
fn clone(&self) -> UpdateCatalogOptions<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more