pub struct UpdateCatalogFileOptions<'a> {Show 14 fields
pub target_path: &'a Path,
pub locale: Option<&'a str>,
pub source_locale: &'a str,
pub input: CatalogUpdateInput,
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 updating a catalog file on disk.
Fields§
§target_path: &'a PathPath to the catalog file that should be read and conditionally written.
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.
storage_format: CatalogStorageFormatStorage format used when reading and writing the file content.
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 UpdateCatalogFileOptions<'a>
impl<'a> Clone for UpdateCatalogFileOptions<'a>
Source§fn clone(&self) -> UpdateCatalogFileOptions<'a>
fn clone(&self) -> UpdateCatalogFileOptions<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for UpdateCatalogFileOptions<'a>
impl<'a> Debug for UpdateCatalogFileOptions<'a>
Source§impl Default for UpdateCatalogFileOptions<'_>
impl Default for UpdateCatalogFileOptions<'_>
Source§fn default() -> UpdateCatalogFileOptions<'_>
fn default() -> UpdateCatalogFileOptions<'_>
Source§impl<'a> PartialEq for UpdateCatalogFileOptions<'a>
impl<'a> PartialEq for UpdateCatalogFileOptions<'a>
Source§fn eq(&self, other: &UpdateCatalogFileOptions<'a>) -> bool
fn eq(&self, other: &UpdateCatalogFileOptions<'a>) -> bool
self and other values to be equal, and is used by ==.