pub struct ProcedureStepNode {
pub id: String,
pub title: String,
pub content: Option<ProcedureStepContent>,
pub output_id: Option<String>,
pub description: Option<String>,
pub is_required: Option<bool>,
pub auto_start: Option<AutoStartConfig>,
pub initial_auto_proceed_config: Option<AutoProceedConfig>,
pub success_condition: Option<SuccessCondition>,
pub completion_action_configs: Vec<CompletionActionConfig>,
}
Expand description
A procedure step node represents a step in the procedure.
Fields§
§id: String
Unique identifier for this node in the procedure graph.
title: String
Title of this step
content: Option<ProcedureStepContent>
The content of this step.
output_id: Option<String>
If set, other steps can reference this step’s outputs using “{output_id}.{field_id}”. Output_id must be globally unique across all steps in the procedure. During execution, we also enforce that the output_id is unique across all non-outdated steps.
description: Option<String>
Optional long-form description for this step
is_required: Option<bool>
is_required defaults to false, meaning that the step may be skipped
auto_start: Option<AutoStartConfig>
Configuration for if and how the step should automatically transition from NOT_STARTED to IN_PROGRESS
By default, this will be all_parents
.
initial_auto_proceed_config: Option<AutoProceedConfig>
Configuration for if and how the step should automatically submit the step contents when requirements are met.
By default, this will be disabled
.
success_condition: Option<SuccessCondition>
Configuration for whether the step will require a condition to be met for the step to be completed By default, this is not set, meaning that the step will not wait on any conditions before completing.
completion_action_configs: Vec<CompletionActionConfig>
Configuration for the actions to take when the step transitions to a completed state (SUCCEEDED, ERRORED, SKIPPED) By default, there are no actions.
Implementations§
Source§impl ProcedureStepNode
impl ProcedureStepNode
Sourcepub fn output_id(&self) -> &str
pub fn output_id(&self) -> &str
Returns the value of output_id
, or the default value if output_id
is unset.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Sourcepub fn is_required(&self) -> bool
pub fn is_required(&self) -> bool
Returns the value of is_required
, or the default value if is_required
is unset.
Trait Implementations§
Source§impl Clone for ProcedureStepNode
impl Clone for ProcedureStepNode
Source§fn clone(&self) -> ProcedureStepNode
fn clone(&self) -> ProcedureStepNode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProcedureStepNode
impl Debug for ProcedureStepNode
Source§impl Default for ProcedureStepNode
impl Default for ProcedureStepNode
Source§impl Message for ProcedureStepNode
impl Message for ProcedureStepNode
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl PartialEq for ProcedureStepNode
impl PartialEq for ProcedureStepNode
impl StructuralPartialEq for ProcedureStepNode
Auto Trait Implementations§
impl Freeze for ProcedureStepNode
impl RefUnwindSafe for ProcedureStepNode
impl Send for ProcedureStepNode
impl Sync for ProcedureStepNode
impl Unpin for ProcedureStepNode
impl UnwindSafe for ProcedureStepNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request