pub struct WriteHazard {
pub seq: u64,
pub tool: String,
pub input: Value,
pub idempotency_key: Option<String>,
pub recorded_at: OffsetDateTime,
}Expand description
A recorded Effect::Write tool intent that a fork’s re-walked segment would
re-execute: the evidence the refuse-then-record policy shows the operator.
seq is the intent’s position in the ORIGIN log — the number the operator
acknowledges and the number recorded into ForkOrigin::acknowledged_writes.
Fields§
§seq: u64The intent’s origin log position.
tool: StringThe tool the intent names.
input: ValueThe typed input the intent recorded.
idempotency_key: Option<String>The intent’s idempotency key, if the tool declared one (a Write
normally carries none).
recorded_at: OffsetDateTimeWhen the intent was recorded, carried so the caller can render it.
Trait Implementations§
Source§impl Clone for WriteHazard
impl Clone for WriteHazard
Source§fn clone(&self) -> WriteHazard
fn clone(&self) -> WriteHazard
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 moreAuto Trait Implementations§
impl Freeze for WriteHazard
impl RefUnwindSafe for WriteHazard
impl Send for WriteHazard
impl Sync for WriteHazard
impl Unpin for WriteHazard
impl UnsafeUnpin for WriteHazard
impl UnwindSafe for WriteHazard
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