pub trait WorkflowJournalIntent:
Sealed
+ DeserializeOwned
+ Serialize
+ Send
+ Sync
+ 'static {
type Transition: WorkflowJournalTransition;
const KIND: LocalOperatorWorkflowKind;
// Required method
fn validate(&self) -> Result<(), WorkflowJournalError>;
}Expand description
A client-owned, closed, secret-free workflow intent.
The sealed trait keeps arbitrary JSON values out of the journal. New workflows define their typed intent and transition in this crate.
Required Associated Constants§
Required Associated Types§
Required Methods§
fn validate(&self) -> Result<(), WorkflowJournalError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".