pub struct Command {
pub id: CommandId,
pub version: u32,
pub state: CommandState,
pub kind: String,
pub target: Option<String>,
pub actor: Option<Actor>,
pub idempotency_key: Option<IdempotencyKey>,
pub outcome: Option<Outcome>,
pub created_at: Timestamp,
pub updated_at: Timestamp,
}Expand description
A stop/kill command. outcome is present iff state is
verification_complete — written in the same transaction as that terminal
transition (the invariant gwk-cert checks and the DDL CHECKs).
Fields§
§id: CommandId§version: u32§state: CommandState§kind: StringOPEN bounded string (e.g. stop_attempt).
target: Option<String>§actor: Option<Actor>§idempotency_key: Option<IdempotencyKey>§outcome: Option<Outcome>§created_at: Timestamp§updated_at: TimestampTrait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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