pub struct DumpsOptions {
pub ensure_ascii: bool,
pub indent: Option<String>,
pub separators: Option<(String, String)>,
pub sort_keys: bool,
}Expand description
Options of Python’s json.dumps that transformers’ tojson exposes.
Fields§
§ensure_ascii: bool§indent: Option<String>None = single line. Some(s) = newline + s per level (Python
turns an int n into n spaces; a string is used verbatim).
separators: Option<(String, String)>(item_separator, key_separator); None = Python’s default,
which depends on indent: (", ", ": ") single-line,
(",", ": ") indented.
sort_keys: boolTrait Implementations§
Source§impl Clone for DumpsOptions
impl Clone for DumpsOptions
Source§impl Debug for DumpsOptions
impl Debug for DumpsOptions
Auto Trait Implementations§
impl Freeze for DumpsOptions
impl RefUnwindSafe for DumpsOptions
impl Send for DumpsOptions
impl Sync for DumpsOptions
impl Unpin for DumpsOptions
impl UnsafeUnpin for DumpsOptions
impl UnwindSafe for DumpsOptions
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