pub struct EncodeOptions {
pub indent: Indent,
pub delimiter: Delimiter,
pub key_folding: KeyFolding,
pub flatten_depth: Option<usize>,
}Fields§
§indent: Indent§delimiter: Delimiter§key_folding: KeyFolding§flatten_depth: Option<usize>Implementations§
Source§impl EncodeOptions
impl EncodeOptions
pub fn new() -> Self
pub fn with_indent(self, indent: Indent) -> Self
pub fn with_delimiter(self, delimiter: Delimiter) -> Self
pub fn with_key_folding(self, key_folding: KeyFolding) -> Self
pub fn with_flatten_depth(self, flatten_depth: Option<usize>) -> Self
Trait Implementations§
Source§impl Clone for EncodeOptions
impl Clone for EncodeOptions
Source§fn clone(&self) -> EncodeOptions
fn clone(&self) -> EncodeOptions
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 EncodeOptions
impl Debug for EncodeOptions
Source§impl Default for EncodeOptions
impl Default for EncodeOptions
Source§fn default() -> EncodeOptions
fn default() -> EncodeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EncodeOptions
impl RefUnwindSafe for EncodeOptions
impl Send for EncodeOptions
impl Sync for EncodeOptions
impl Unpin for EncodeOptions
impl UnwindSafe for EncodeOptions
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