pub enum NodeEvent {
Header(HeaderInfo),
ListStart {
key: String,
type_name: String,
schema: Vec<String>,
line: usize,
},
Node(NodeInfo),
ListEnd {
key: String,
type_name: String,
count: usize,
},
Scalar {
key: String,
value: Value,
line: usize,
},
ObjectStart {
key: String,
line: usize,
},
ObjectEnd {
key: String,
},
EndOfDocument,
}Expand description
Event emitted by the streaming parser.
Variants§
Header(HeaderInfo)
Header has been parsed.
ListStart
Start of a new list.
Fields
Node(NodeInfo)
A node/row has been parsed.
ListEnd
End of a list.
Fields
Scalar
A scalar key-value pair.
ObjectStart
Start of an object.
ObjectEnd
End of an object.
EndOfDocument
End of document.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeEvent
impl RefUnwindSafe for NodeEvent
impl Send for NodeEvent
impl Sync for NodeEvent
impl Unpin for NodeEvent
impl UnwindSafe for NodeEvent
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