pub struct SerializeOptions {
pub indent_size: usize,
pub delimiter: Delimiter,
pub use_tabular: bool,
pub max_inline_items: usize,
}Expand description
Options for serializing TOON
Fields§
§indent_size: usizeNumber of spaces per indentation level (default: 2)
delimiter: DelimiterDefault delimiter for inline arrays (default: comma)
use_tabular: boolWhether to use tabular format for uniform arrays of objects
max_inline_items: usizeMaximum number of primitive items before switching to expanded array
Trait Implementations§
Source§impl Clone for SerializeOptions
impl Clone for SerializeOptions
Source§fn clone(&self) -> SerializeOptions
fn clone(&self) -> SerializeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SerializeOptions
impl Debug for SerializeOptions
Auto Trait Implementations§
impl Freeze for SerializeOptions
impl RefUnwindSafe for SerializeOptions
impl Send for SerializeOptions
impl Sync for SerializeOptions
impl Unpin for SerializeOptions
impl UnsafeUnpin for SerializeOptions
impl UnwindSafe for SerializeOptions
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