Enum unnest_ndjson::HeaderStyle
source · [−]#[non_exhaustive]
pub enum HeaderStyle {
None,
PathArray,
}
Expand description
Control what information is retained for individual result documents
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No information is retained.
PathArray
The path to the child document is retained.
{"a": {"H": 6}, "b": {"H": 7}}
would become,
with the default formatter and a target of 1
,
{"key":["a"],"value":{"H":6}}
and
{"key":["b"],"value":{"H":6}}
Trait Implementations
sourceimpl Clone for HeaderStyle
impl Clone for HeaderStyle
sourcefn clone(&self) -> HeaderStyle
fn clone(&self) -> HeaderStyle
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 moresourceimpl PartialEq<HeaderStyle> for HeaderStyle
impl PartialEq<HeaderStyle> for HeaderStyle
sourcefn eq(&self, other: &HeaderStyle) -> bool
fn eq(&self, other: &HeaderStyle) -> bool
impl Copy for HeaderStyle
impl Eq for HeaderStyle
impl StructuralEq for HeaderStyle
impl StructuralPartialEq for HeaderStyle
Auto Trait Implementations
impl RefUnwindSafe for HeaderStyle
impl Send for HeaderStyle
impl Sync for HeaderStyle
impl Unpin for HeaderStyle
impl UnwindSafe for HeaderStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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