pub struct YamlConfig {Show 15 fields
pub loader_type: LoaderType,
pub pure: bool,
pub preserve_quotes: bool,
pub default_flow_style: Option<bool>,
pub allow_duplicate_keys: bool,
pub encoding: String,
pub explicit_start: Option<bool>,
pub explicit_end: Option<bool>,
pub width: Option<usize>,
pub allow_unicode: bool,
pub indent: IndentConfig,
pub preserve_comments: bool,
pub limits: Limits,
pub safe_mode: bool,
pub strict_mode: bool,
}Expand description
Configuration for YAML processing
Fields§
§loader_type: LoaderTypeType of loader/dumper to use
pure: boolWhether to use pure Rust implementation (no C extensions)
preserve_quotes: boolWhether to preserve quote styles during round-trip
default_flow_style: Option<bool>Default flow style for output
allow_duplicate_keys: boolWhether to allow duplicate keys
encoding: StringText encoding to use
explicit_start: Option<bool>Whether to add explicit document start markers
explicit_end: Option<bool>Whether to add explicit document end markers
width: Option<usize>Line width for output formatting
allow_unicode: boolWhether to allow unicode characters
indent: IndentConfigIndentation settings
preserve_comments: boolWhether to preserve comments during round-trip operations
limits: LimitsResource limits for secure processing
safe_mode: boolEnable safe mode (restricts dangerous features)
strict_mode: boolEnable strict mode (fail on ambiguous constructs)
Implementations§
Source§impl YamlConfig
impl YamlConfig
Trait Implementations§
Source§impl Clone for YamlConfig
impl Clone for YamlConfig
Source§fn clone(&self) -> YamlConfig
fn clone(&self) -> YamlConfig
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 YamlConfig
impl Debug for YamlConfig
Auto Trait Implementations§
impl Freeze for YamlConfig
impl RefUnwindSafe for YamlConfig
impl Send for YamlConfig
impl Sync for YamlConfig
impl Unpin for YamlConfig
impl UnwindSafe for YamlConfig
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