tapis_workflows/models/
enum_invocation_mode.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(
15 Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
16)]
17pub enum EnumInvocationMode {
18 #[serde(rename = "async")]
19 #[default]
20 Async,
21 #[serde(rename = "sync")]
22 Sync,
23}
24
25impl std::fmt::Display for EnumInvocationMode {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Async => write!(f, "async"),
29 Self::Sync => write!(f, "sync"),
30 }
31 }
32}