pub struct CommandEnvelope {
pub schema_version: u16,
pub command_id: CommandId,
pub workflow_id: WorkflowId,
pub attempt_id: AttemptId,
pub session_id: SessionId,
pub page_id: Option<PageId>,
pub deadline: DateTime<Utc>,
pub command: RuntimeCommand,
}Expand description
Envelope submitted to POST /v1/commands.
Fields§
§schema_version: u16§command_id: CommandId§workflow_id: WorkflowId§attempt_id: AttemptId§session_id: SessionId§page_id: Option<PageId>§deadline: DateTime<Utc>§command: RuntimeCommandImplementations§
Source§impl CommandEnvelope
impl CommandEnvelope
pub const SCHEMA_VERSION: u16 = 2
Sourcepub fn journal_safe(&self) -> Self
pub fn journal_safe(&self) -> Self
Returns a copy safe for durable journals (URLs sanitized). Keep the live envelope in memory for execution.
Trait Implementations§
Source§impl Clone for CommandEnvelope
impl Clone for CommandEnvelope
Source§impl Debug for CommandEnvelope
impl Debug for CommandEnvelope
Source§impl<'de> Deserialize<'de> for CommandEnvelope
impl<'de> Deserialize<'de> for CommandEnvelope
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 CommandEnvelope
impl RefUnwindSafe for CommandEnvelope
impl Send for CommandEnvelope
impl Sync for CommandEnvelope
impl Unpin for CommandEnvelope
impl UnsafeUnpin for CommandEnvelope
impl UnwindSafe for CommandEnvelope
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