Expand description
Enum to specify how arrays are formatted.
Variants
Plain
Uses only the key separator. Example: {"a": ["b"]}
=> {"a.0": "b"}
Surrounded
Does not use the key separator. Instead, the position in the array is surrounded with the
provided start
and end
strings.
Example: If start
is [
and end
is ]
then {"a": ["b"]}
=> {"a[0]": "b"}
Trait Implementations
sourceimpl Clone for ArrayFormatting
impl Clone for ArrayFormatting
sourcefn clone(&self) -> ArrayFormatting
fn clone(&self) -> ArrayFormatting
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArrayFormatting
impl Debug for ArrayFormatting
sourceimpl PartialEq<ArrayFormatting> for ArrayFormatting
impl PartialEq<ArrayFormatting> for ArrayFormatting
sourcefn eq(&self, other: &ArrayFormatting) -> bool
fn eq(&self, other: &ArrayFormatting) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ArrayFormatting) -> bool
fn ne(&self, other: &ArrayFormatting) -> bool
This method tests for !=
.
impl Eq for ArrayFormatting
impl StructuralEq for ArrayFormatting
impl StructuralPartialEq for ArrayFormatting
Auto Trait Implementations
impl RefUnwindSafe for ArrayFormatting
impl Send for ArrayFormatting
impl Sync for ArrayFormatting
impl Unpin for ArrayFormatting
impl UnwindSafe for ArrayFormatting
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more