pub struct ShadowRunStarted {
pub tenant: String,
pub shadow_run_id: String,
pub source_run_id: String,
pub revision_id: RevisionId,
pub role: DecisionRole,
pub author: ProvenanceAuthor,
pub started_at: DateTime<Utc>,
}Expand description
A shadow run started: the journaled payload of a
crate::record::RunEventKind::ShadowRunStarted event in the shadow
run’s own journal. Naming the source run and pinning
role: shadow makes the twin-pair discipline data the journal
carries: the shadow’s evidence names what it shadows, and its role
can never be confused with the acting twin’s.
Fields§
§tenant: StringThe tenant the shadow runs under.
shadow_run_id: StringThe shadow run’s id.
source_run_id: StringThe recorded run this shadow replays.
revision_id: RevisionIdThe candidate revision under test.
role: DecisionRoleThe decision role — always DecisionRole::Shadow; pinned in
the payload so the discipline survives any caller.
Who launched the shadow (human:{id}).
started_at: DateTime<Utc>When the shadow started.
Trait Implementations§
Source§impl Clone for ShadowRunStarted
impl Clone for ShadowRunStarted
Source§impl Debug for ShadowRunStarted
impl Debug for ShadowRunStarted
Source§impl<'de> Deserialize<'de> for ShadowRunStarted
impl<'de> Deserialize<'de> for ShadowRunStarted
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 PartialEq for ShadowRunStarted
impl PartialEq for ShadowRunStarted
Source§impl Serialize for ShadowRunStarted
impl Serialize for ShadowRunStarted
impl StructuralPartialEq for ShadowRunStarted
Auto Trait Implementations§
impl Freeze for ShadowRunStarted
impl RefUnwindSafe for ShadowRunStarted
impl Send for ShadowRunStarted
impl Sync for ShadowRunStarted
impl Unpin for ShadowRunStarted
impl UnsafeUnpin for ShadowRunStarted
impl UnwindSafe for ShadowRunStarted
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