pub enum NdjsonLine {
Header(SessionHeader),
Command(Command),
Footer(SessionFooter),
}Expand description
NDJSON line types for streaming writes.
Each line in a session file is one of these types, discriminated by the “type” field in the JSON.
Variants§
Header(SessionHeader)
Session header with metadata
Command(Command)
Individual command
Session footer with summary
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NdjsonLine
impl<'de> Deserialize<'de> for NdjsonLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NdjsonLine
impl RefUnwindSafe for NdjsonLine
impl Send for NdjsonLine
impl Sync for NdjsonLine
impl Unpin for NdjsonLine
impl UnwindSafe for NdjsonLine
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