pub struct CreateWorkflowDetails {
pub name: String,
pub description: Option<String>,
pub transitions: Vec<CreateWorkflowTransitionDetails>,
pub statuses: Vec<CrateWorkflowStatusDetails>,
}
Expand description
CreateWorkflowDetails : The details of a workflow.
Fields§
§name: String
The name of the workflow. The name must be unique. The maximum length is 255 characters. Characters can be separated by a whitespace but the name cannot start or end with a whitespace.
description: Option<String>
The description of the workflow. The maximum length is 1000 characters.
transitions: Vec<CreateWorkflowTransitionDetails>
The transitions of the workflow. For the request to be valid, these transitions must: * include one initial transition. * not use the same name for a global and directed transition. * have a unique name for each global transition. * have a unique ‘to’ status for each global transition. * have unique names for each transition from a status. * not have a ‘from’ status on initial and global transitions. * have a ‘from’ status on directed transitions. All the transition statuses must be included in statuses
.
statuses: Vec<CrateWorkflowStatusDetails>
The statuses of the workflow. Any status that does not include a transition is added to the workflow without a transition.
Implementations§
Source§impl CreateWorkflowDetails
impl CreateWorkflowDetails
Sourcepub fn new(
name: String,
transitions: Vec<CreateWorkflowTransitionDetails>,
statuses: Vec<CrateWorkflowStatusDetails>,
) -> CreateWorkflowDetails
pub fn new( name: String, transitions: Vec<CreateWorkflowTransitionDetails>, statuses: Vec<CrateWorkflowStatusDetails>, ) -> CreateWorkflowDetails
The details of a workflow.
Trait Implementations§
Source§impl Clone for CreateWorkflowDetails
impl Clone for CreateWorkflowDetails
Source§fn clone(&self) -> CreateWorkflowDetails
fn clone(&self) -> CreateWorkflowDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more