pub struct LeanWorkerDataRow {
pub stream: String,
pub sequence: u64,
pub payload: Value,
}Expand description
One downstream-owned JSON row delivered over a worker request.
stream is a caller-defined channel name. sequence starts at zero per
stream inside one request and is assigned by lean-rs-worker. payload is
owned JSON; callers may keep it after LeanWorkerDataSink::report returns.
Fields§
§stream: String§sequence: u64§payload: ValueTrait Implementations§
Source§impl Clone for LeanWorkerDataRow
impl Clone for LeanWorkerDataRow
Source§fn clone(&self) -> LeanWorkerDataRow
fn clone(&self) -> LeanWorkerDataRow
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 moreSource§impl Debug for LeanWorkerDataRow
impl Debug for LeanWorkerDataRow
Source§impl PartialEq for LeanWorkerDataRow
impl PartialEq for LeanWorkerDataRow
Source§fn eq(&self, other: &LeanWorkerDataRow) -> bool
fn eq(&self, other: &LeanWorkerDataRow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanWorkerDataRow
impl StructuralPartialEq for LeanWorkerDataRow
Auto Trait Implementations§
impl Freeze for LeanWorkerDataRow
impl RefUnwindSafe for LeanWorkerDataRow
impl Send for LeanWorkerDataRow
impl Sync for LeanWorkerDataRow
impl Unpin for LeanWorkerDataRow
impl UnsafeUnpin for LeanWorkerDataRow
impl UnwindSafe for LeanWorkerDataRow
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