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