pub struct Settings {
pub allow_duplicate_keys: bool,
pub allow_trailing_comma: bool,
pub allow_comments: bool,
/* private fields */
}
Expand description
Deserialization/parsing settings
Fields§
§allow_duplicate_keys: bool
Allow duplicate JSON object/map keys when deserializing Maps, such as: {"a": 1, "a": 2}
. Only one value will be retained.
default: false
allow_trailing_comma: bool
Allow trailing commas when deserializing an array such as [1, 2, 3,]
or object such as {"a", 1, "b": 2,}
.
allow_comments: bool
Allow // single line
or /* block */
comments.
Trait Implementations§
impl Copy for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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