pub struct ParserOptions {
pub ignore_tag: bool,
pub requires_other_clause: bool,
pub should_parse_skeletons: bool,
pub capture_location: bool,
pub locale: Option<String>,
}
Fields§
§ignore_tag: bool
Whether to treat HTML/XML tags as string literal instead of parsing them as tag token. When this is false we only allow simple tags without any attributes
requires_other_clause: bool
Should select
, selectordinal
, and plural
arguments always include
the other
case clause.
should_parse_skeletons: bool
Whether to parse number/datetime skeleton into Intl.NumberFormatOptions and Intl.DateTimeFormatOptions, respectively
capture_location: bool
Capture location info in AST Default is false
locale: Option<String>
Instance of Intl.Locale to resolve locale-dependent skeleton
Implementations§
Trait Implementations§
Source§impl Clone for ParserOptions
impl Clone for ParserOptions
Source§fn clone(&self) -> ParserOptions
fn clone(&self) -> ParserOptions
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 Debug for ParserOptions
impl Debug for ParserOptions
Source§impl Default for ParserOptions
impl Default for ParserOptions
Source§fn default() -> ParserOptions
fn default() -> ParserOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParserOptions
impl<'de> Deserialize<'de> for ParserOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParserOptions
impl PartialEq for ParserOptions
Source§impl Serialize for ParserOptions
impl Serialize for ParserOptions
impl Eq for ParserOptions
impl StructuralPartialEq for ParserOptions
Auto Trait Implementations§
impl Freeze for ParserOptions
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnwindSafe for ParserOptions
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