pub struct DataRow {
pub stream: String,
pub sequence: u64,
pub payload: Box<RawValue>,
}Expand description
One row in a streaming response.
Construction goes through DataRowEmitter::next in the child runtime;
direct struct-literal construction is permitted in tests and harnesses.
This struct intentionally stays exhaustive: see the module-level note on
additive evolution.
Fields§
§stream: StringLogical stream this row belongs to.
sequence: u64Per-stream monotonically increasing sequence number.
payload: Box<RawValue>Opaque JSON payload (deserialised lazily by the parent).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataRow
impl<'de> Deserialize<'de> for DataRow
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
impl Eq for DataRow
Auto Trait Implementations§
impl Freeze for DataRow
impl RefUnwindSafe for DataRow
impl Send for DataRow
impl Sync for DataRow
impl Unpin for DataRow
impl UnsafeUnpin for DataRow
impl UnwindSafe for DataRow
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