Enum mcai_models::WorkflowDefinition
source · [−]pub enum WorkflowDefinition {
Version1_8(Version1_8),
Version1_9(Version1_9),
Version1_10(Version1_10),
Version1_11(Version1_11),
}
Expand description
Variants
Version1_8(Version1_8)
Version1_9(Version1_9)
Version1_10(Version1_10)
Version1_11(Version1_11)
Implementations
sourceimpl WorkflowDefinition
impl WorkflowDefinition
pub fn new(identifier: &str, label: &str) -> Self
pub fn identifier(&self) -> &str
pub fn label(&self) -> &str
pub fn version(&self) -> Version
pub fn schema_version(&self) -> SchemaVersion
pub fn is_live(&self) -> bool
pub fn toggle_is_live(&mut self)
pub fn steps(&self) -> &Vec<Step>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn get_mut_steps(&mut self) -> &mut Vec<Step>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn get_mut_step(&mut self, step_id: u32) -> Option<&mut Step>
pub fn set_parameter_on_step(
&mut self,
step_id: u32,
field_name: &str,
new_value: ParameterType,
is_parameter: bool
) -> bool
pub fn update_step(&mut self, step: Step)
pub fn remove_step(&mut self, step_id: u32)
pub fn connect_steps(
&mut self,
child_step_id: u32,
parent_step_id: u32,
link_type: LinkType
)
pub fn disconnect_steps(
&mut self,
child_step_id: u32,
parent_step_id: u32,
link_type: LinkType
)
pub fn set_workflow_property(
&mut self,
field_name: &str,
value: ParameterType
) -> bool
pub fn get_start_parameters(&self) -> &Vec<StartParameter>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn get_mut_start_parameters(&mut self) -> &mut Vec<StartParameter>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn get_notification_hooks(&self) -> Option<&Vec<NotificationHook>>
pub fn get_mut_notification_hooks(
&mut self
) -> Option<&mut Vec<NotificationHook>>
Trait Implementations
sourceimpl Clone for WorkflowDefinition
impl Clone for WorkflowDefinition
sourcefn clone(&self) -> WorkflowDefinition
fn clone(&self) -> WorkflowDefinition
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 WorkflowDefinition
impl Debug for WorkflowDefinition
sourceimpl<'de> Deserialize<'de> for WorkflowDefinition
impl<'de> Deserialize<'de> for WorkflowDefinition
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 JsonSchema for WorkflowDefinition
impl JsonSchema for WorkflowDefinition
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresourceimpl PartialEq<WorkflowDefinition> for WorkflowDefinition
impl PartialEq<WorkflowDefinition> for WorkflowDefinition
sourcefn eq(&self, other: &WorkflowDefinition) -> bool
fn eq(&self, other: &WorkflowDefinition) -> bool
sourceimpl Serialize for WorkflowDefinition
impl Serialize for WorkflowDefinition
impl StructuralPartialEq for WorkflowDefinition
Auto Trait Implementations
impl RefUnwindSafe for WorkflowDefinition
impl Send for WorkflowDefinition
impl Sync for WorkflowDefinition
impl Unpin for WorkflowDefinition
impl UnwindSafe for WorkflowDefinition
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