#[non_exhaustive]pub struct ParsedInput {
pub items: Vec<Value>,
pub meta: Option<Map<String, Value>>,
pub items_path: String,
pub skips: Vec<SkipReport>,
}Expand description
One parsed input, ready for clustering.
PartialEq is intentionally not derived because SkipReport does
not implement it; compare fields individually in tests.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.items: Vec<Value>Records to cluster, in input order.
meta: Option<Map<String, Value>>Sidecar metadata: present when the JSON root was an object and
items detection collected leftover non-array fields. None for
JSONL, JSON-array roots, and CSV/TSV inputs.
items_path: Stringjq-style path that produced Self::items.
"."— top-level array, JSONL stream, or face envelope.".items"/".results"/ etc. — the named candidate selected by §4.2 items detection on a JSON object root.- The user’s
--items=PATHvalue when supplied via theitems_pathargument toparse.
Surfaced into the envelope’s detection.items_path field per
§7.
skips: Vec<SkipReport>Per-record skip events surfaced during parsing.
Trait Implementations§
Source§impl Clone for ParsedInput
impl Clone for ParsedInput
Source§fn clone(&self) -> ParsedInput
fn clone(&self) -> ParsedInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedInput
impl RefUnwindSafe for ParsedInput
impl Send for ParsedInput
impl Sync for ParsedInput
impl Unpin for ParsedInput
impl UnsafeUnpin for ParsedInput
impl UnwindSafe for ParsedInput
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