pub struct DecodeOptions {
pub indent: Option<usize>,
pub strict: Option<bool>,
}Expand description
Options for decoding TOON format
Fields§
§indent: Option<usize>Expected number of spaces per indentation level (default: 2)
strict: Option<bool>Enable strict validation (default: true)
Implementations§
Source§impl DecodeOptions
impl DecodeOptions
Sourcepub fn get_indent(&self) -> usize
pub fn get_indent(&self) -> usize
Get the indentation, defaulting to 2
Sourcepub fn get_strict(&self) -> bool
pub fn get_strict(&self) -> bool
Get strict mode, defaulting to true
Trait Implementations§
Source§impl Clone for DecodeOptions
impl Clone for DecodeOptions
Source§fn clone(&self) -> DecodeOptions
fn clone(&self) -> DecodeOptions
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 DecodeOptions
impl Debug for DecodeOptions
Source§impl Default for DecodeOptions
impl Default for DecodeOptions
Source§fn default() -> DecodeOptions
fn default() -> DecodeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecodeOptions
impl RefUnwindSafe for DecodeOptions
impl Send for DecodeOptions
impl Sync for DecodeOptions
impl Unpin for DecodeOptions
impl UnwindSafe for DecodeOptions
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