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: NaiveDateTime
Creation date of this Workflow
id: u32
The Id of this Workflow
identifier: String
The Identifier of the workflow, used to reference it
is_live: bool
Mentions if it defines a live workflow
label: String
The label of the workflow, used as displayed name
reference: Option<String>
Reference of this Workflow
schema_version: String
Schema version of this Workflow
status: Option<Status>
Status of this Workflow
version_major: u32
Major version of this Workflow
version_minor: u32
Minor version of this Workflow
version_micro: u32
Micro 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 moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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