pub enum ArrayFormatting {
Plain,
Surrounded {
start: String,
end: String,
},
}
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§
Source§impl Clone for ArrayFormatting
impl Clone for ArrayFormatting
Source§fn clone(&self) -> ArrayFormatting
fn clone(&self) -> ArrayFormatting
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 ArrayFormatting
impl Debug for ArrayFormatting
Source§impl PartialEq for ArrayFormatting
impl PartialEq for ArrayFormatting
impl Eq for ArrayFormatting
impl StructuralPartialEq for ArrayFormatting
Auto Trait Implementations§
impl Freeze for ArrayFormatting
impl RefUnwindSafe for ArrayFormatting
impl Send for ArrayFormatting
impl Sync for ArrayFormatting
impl Unpin for ArrayFormatting
impl UnwindSafe for ArrayFormatting
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