pub struct ParseConfig {
pub string_transform: Option<StringTransform>,
pub array_mode: Option<ArrayMode>,
pub empty_table_mode: EmptyTableMode,
}Expand description
Internal configuration for parsing.
Fields§
§string_transform: Option<StringTransform>§array_mode: Option<ArrayMode>§empty_table_mode: EmptyTableModeImplementations§
Source§impl ParseConfig
impl ParseConfig
pub fn new() -> Self
pub fn effective_array_mode(&self) -> ArrayMode
pub fn effective_empty_table_mode(&self) -> EmptyTableMode
Sourcepub fn transform_string(&self, source: &str) -> (String, bool)
pub fn transform_string(&self, source: &str) -> (String, bool)
Apply string transform if configured and the string exceeds max_len. Returns (transformed_string, was_transformed).
Trait Implementations§
Source§impl Clone for ParseConfig
impl Clone for ParseConfig
Source§fn clone(&self) -> ParseConfig
fn clone(&self) -> ParseConfig
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 ParseConfig
impl Debug for ParseConfig
Auto Trait Implementations§
impl Freeze for ParseConfig
impl RefUnwindSafe for ParseConfig
impl Send for ParseConfig
impl Sync for ParseConfig
impl Unpin for ParseConfig
impl UnsafeUnpin for ParseConfig
impl UnwindSafe for ParseConfig
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