Struct wakflo_core::workflow_instance::WorkflowInstance
source · pub struct WorkflowInstance {Show 14 fields
pub id: String,
pub workflow_id: String,
pub workflow: Option<Workflow>,
pub state: JobInstanceState,
pub status: JobProcessStatus,
pub team_id: String,
pub input: HashMap<String, Value>,
pub errors: Vec<SystemActivityLog>,
pub output: HashMap<String, Value>,
pub metadata: JobMetadata,
pub created_by: Option<String>,
pub updated_by: Option<String>,
pub created_at: DateTime<FixedOffset>,
pub updated_at: DateTime<FixedOffset>,
}Expand description
WorkflowInstance
A running instance of a schema entity
Fields§
§id: StringUnique identifier of a schema
workflow_id: StringWorkflow that owns this schema
workflow: Option<Workflow>Workflow that owns this schema
state: JobInstanceState§status: JobProcessStatusActual state of the schema JobProcessStatus
team_id: String§input: HashMap<String, Value>Execution result
errors: Vec<SystemActivityLog>§output: HashMap<String, Value>§metadata: JobMetadataJobMetadata data for job
created_by: Option<String>[OwnerMetadata] owner data for entity
updated_by: Option<String>[OwnerMetadata] owner data for entity
created_at: DateTime<FixedOffset>Date the entity was created
updated_at: DateTime<FixedOffset>Date the entity was updated
Trait Implementations§
source§impl Clone for WorkflowInstance
impl Clone for WorkflowInstance
source§fn clone(&self) -> WorkflowInstance
fn clone(&self) -> WorkflowInstance
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WorkflowInstance
impl Debug for WorkflowInstance
source§impl<'de> Deserialize<'de> for WorkflowInstance
impl<'de> Deserialize<'de> for WorkflowInstance
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 WorkflowInstance
impl PartialEq for WorkflowInstance
source§fn eq(&self, other: &WorkflowInstance) -> bool
fn eq(&self, other: &WorkflowInstance) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for WorkflowInstance
impl Serialize for WorkflowInstance
impl Eq for WorkflowInstance
impl StructuralEq for WorkflowInstance
impl StructuralPartialEq for WorkflowInstance
Auto Trait Implementations§
impl RefUnwindSafe for WorkflowInstance
impl Send for WorkflowInstance
impl Sync for WorkflowInstance
impl Unpin for WorkflowInstance
impl UnwindSafe for WorkflowInstance
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