pub struct StateEvent {Show 13 fields
pub schema: String,
pub id: String,
pub kind: String,
pub target: StateTarget,
pub actor: StateActor,
pub timestamp: String,
pub reason: String,
pub before_hash: String,
pub after_hash: String,
pub payload: Value,
pub caveats: Vec<String>,
pub signature: Option<String>,
pub schema_artifact_id: Option<String>,
}Fields§
§schema: String§id: String§kind: String§target: StateTarget§actor: StateActor§timestamp: String§reason: String§before_hash: String§after_hash: String§payload: Value§caveats: Vec<String>§signature: Option<String>§schema_artifact_id: Option<String>v0.89: optional reference to a content-addressed schema /
reducer artifact in a crate::schema_registry::SchemaRegistry.
When present, replay tooling can verify the artifact exists
before applying the event (per docs/THEORY.md §5.1 / §5.5).
Not part of the canonical event-id preimage: setting
or clearing this field does NOT change event.id. Pre-v0.89
events default to None and serialize byte-identically.
Trait Implementations§
Source§impl Clone for StateEvent
impl Clone for StateEvent
Source§fn clone(&self) -> StateEvent
fn clone(&self) -> StateEvent
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 StateEvent
impl Debug for StateEvent
Source§impl<'de> Deserialize<'de> for StateEvent
impl<'de> Deserialize<'de> for StateEvent
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 StateEvent
impl RefUnwindSafe for StateEvent
impl Send for StateEvent
impl Sync for StateEvent
impl Unpin for StateEvent
impl UnsafeUnpin for StateEvent
impl UnwindSafe for StateEvent
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