pub struct ParseCatalogOptions<'a> {
pub content: &'a str,
pub locale: Option<&'a str>,
pub source_locale: &'a str,
pub storage_format: CatalogStorageFormat,
pub semantics: CatalogSemantics,
pub plural_encoding: PluralEncoding,
pub strict: bool,
}Expand description
Options for parsing a catalog into the higher-level message model.
Fields§
§content: &'a strCatalog content to parse.
locale: Option<&'a str>Optional explicit locale override.
source_locale: &'a strSource locale used for source-side semantics and validation.
storage_format: CatalogStorageFormatStorage format used when parsing the content.
semantics: CatalogSemanticsHigh-level semantics used when interpreting catalog content.
plural_encoding: PluralEncodingTarget plural interpretation for the resulting catalog view.
strict: boolWhether unsupported ICU plural projection cases should become hard errors.
Trait Implementations§
Source§impl<'a> Clone for ParseCatalogOptions<'a>
impl<'a> Clone for ParseCatalogOptions<'a>
Source§fn clone(&self) -> ParseCatalogOptions<'a>
fn clone(&self) -> ParseCatalogOptions<'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 ParseCatalogOptions<'a>
impl<'a> Debug for ParseCatalogOptions<'a>
Source§impl Default for ParseCatalogOptions<'_>
impl Default for ParseCatalogOptions<'_>
Source§fn default() -> ParseCatalogOptions<'_>
fn default() -> ParseCatalogOptions<'_>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for ParseCatalogOptions<'a>
impl<'a> PartialEq for ParseCatalogOptions<'a>
impl<'a> Eq for ParseCatalogOptions<'a>
impl<'a> StructuralPartialEq for ParseCatalogOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParseCatalogOptions<'a>
impl<'a> RefUnwindSafe for ParseCatalogOptions<'a>
impl<'a> Send for ParseCatalogOptions<'a>
impl<'a> Sync for ParseCatalogOptions<'a>
impl<'a> Unpin for ParseCatalogOptions<'a>
impl<'a> UnsafeUnpin for ParseCatalogOptions<'a>
impl<'a> UnwindSafe for ParseCatalogOptions<'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