Struct mcai_models::WorkflowInstance
source · [−]pub struct WorkflowInstance {Show 15 fields
pub created_at: NaiveDateTime,
pub id: u32,
pub identifier: String,
pub is_live: bool,
pub label: String,
pub reference: Option<String>,
pub schema_version: String,
pub status: Option<Status>,
pub version_major: u32,
pub version_minor: u32,
pub version_micro: u32,
pub start_parameters: Vec<StartParameter>,
pub steps: Vec<Step>,
pub jobs: Vec<Job>,
pub tags: Vec<String>,
}Fields
created_at: NaiveDateTimeCreation date of this Workflow
id: u32The Id of this Workflow
identifier: StringThe Identifier of the workflow, used to reference it
is_live: boolMentions if it defines a live workflow
label: StringThe label of the workflow, used as displayed name
reference: Option<String>Reference of this Workflow
schema_version: StringSchema version of this Workflow
status: Option<Status>Status of this Workflow
version_major: u32Major version of this Workflow
version_minor: u32Minor version of this Workflow
version_micro: u32Micro version of this Workflow
start_parameters: Vec<StartParameter>Definition of available parameters to start the workflow
steps: Vec<Step>List of steps
jobs: Vec<Job>List of jobs
List of tags to classify the workflow
Implementations
sourceimpl WorkflowInstance
impl WorkflowInstance
pub fn schema_version(&self) -> SchemaVersion
pub fn get_number_of_steps(&self) -> usize
pub fn get_passed_steps_count(&self) -> usize
Trait Implementations
sourceimpl Clone for WorkflowInstance
impl Clone for WorkflowInstance
sourcefn clone(&self) -> WorkflowInstance
fn clone(&self) -> WorkflowInstance
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for WorkflowInstance
impl Debug for WorkflowInstance
sourceimpl<'de> Deserialize<'de> for WorkflowInstance
impl<'de> Deserialize<'de> for WorkflowInstance
sourcefn 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
sourceimpl PartialEq<WorkflowInstance> for WorkflowInstance
impl PartialEq<WorkflowInstance> for WorkflowInstance
sourcefn 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 ==. Read more
sourceimpl Serialize for WorkflowInstance
impl Serialize 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more