reactive_graph_client/client/instances/flows/args/create.rs
1use crate::client::types::flows::args::type_id::FlowTypeIdArgs;
2use clap::Args;
3use uuid::Uuid;
4
5#[derive(Args, Debug, Clone)]
6pub(crate) struct CreateFlowInstanceArgs {
7 /// The entity type.
8 #[clap(flatten)]
9 pub ty: FlowTypeIdArgs,
10
11 /// The entity instance id.
12 #[clap(short, long)]
13 pub id: Option<Uuid>,
14
15 /// The name of the flow instance.
16 #[clap(short, long)]
17 pub name: Option<String>,
18
19 /// Textual description of the flow instance.
20 #[clap(short, long)]
21 pub description: Option<String>,
22}
23
24impl CreateFlowInstanceArgs {
25 // pub fn properties(&self) -> PropertyInstances {
26 // match &self.properties {
27 // None => PropertyInstances::new(),
28 // Some(properties) => properties.iter().map(|(name, value)| (name.clone(), value.clone())).collect(),
29 // }
30 // }
31}