pub struct StringifyOptions<'a> {
pub metadata: bool,
pub ident: &'a str,
pub compat_items: bool,
}Expand description
options for stringify()
Fields§
§metadata: boolwhether to stringify metadata, default: false.
ident: &'a strsequence of characters used as 1 depth of indentation, default: "".
compat_items: boolwrite maps and arr on single line if possible, default false
Trait Implementations§
Source§impl<'a> Clone for StringifyOptions<'a>
impl<'a> Clone for StringifyOptions<'a>
Source§fn clone(&self) -> StringifyOptions<'a>
fn clone(&self) -> StringifyOptions<'a>
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<'a> Debug for StringifyOptions<'a>
impl<'a> Debug for StringifyOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for StringifyOptions<'a>
impl<'a> RefUnwindSafe for StringifyOptions<'a>
impl<'a> Send for StringifyOptions<'a>
impl<'a> Sync for StringifyOptions<'a>
impl<'a> Unpin for StringifyOptions<'a>
impl<'a> UnsafeUnpin for StringifyOptions<'a>
impl<'a> UnwindSafe for StringifyOptions<'a>
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