pub enum ReturnFormat {
Nested,
Flat,
Array,
}Expand description
Return format for path-based methods
Variants§
Nested
Nested object preserving the path hierarchy (default) Example: { “user”: { “profile”: { “name”: “John” } } }
Flat
Flat object with dotted keys Example: { “user.profile.name”: “John” }
Array
Array of values in the order of requested paths Example: [“John”]
Trait Implementations§
Source§impl Clone for ReturnFormat
impl Clone for ReturnFormat
Source§fn clone(&self) -> ReturnFormat
fn clone(&self) -> ReturnFormat
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 ReturnFormat
impl Debug for ReturnFormat
Source§impl Default for ReturnFormat
impl Default for ReturnFormat
Source§fn default() -> ReturnFormat
fn default() -> ReturnFormat
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReturnFormat
impl PartialEq for ReturnFormat
impl Copy for ReturnFormat
impl Eq for ReturnFormat
impl StructuralPartialEq for ReturnFormat
Auto Trait Implementations§
impl Freeze for ReturnFormat
impl RefUnwindSafe for ReturnFormat
impl Send for ReturnFormat
impl Sync for ReturnFormat
impl Unpin for ReturnFormat
impl UnwindSafe for ReturnFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.