pub struct Envelope {
pub input: EventInput,
pub seq: u64,
pub parent_run_id: Option<String>,
pub parent_step_id: Option<String>,
pub state_hash: String,
}Expand description
A journaled event: EventInput plus the kernel-assigned sequence number and the
state hash after folding it (so a re-fold can pinpoint the divergent seq).
Fields§
§input: EventInputThe submitted event, flattened into the envelope on the wire.
seq: u64Sequence number assigned by the journal writer; strictly increasing per run,
starting at 1.
parent_run_id: Option<String>The parent run, when this run was spawned as a child.
parent_step_id: Option<String>The parent’s spawn step, when this run was spawned as a child.
state_hash: StringHash of (kernel_state, state) after the transition that produced this event
(see docs/kernel-protocol.md).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Envelope
impl<'de> Deserialize<'de> for Envelope
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
Source§impl JsonSchema for Envelope
impl JsonSchema for Envelope
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Envelope
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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