Skip to main content

tapis_workflows/models/
enum_invocation_mode.rs

1/*
2 * Tapis Workflows API
3 *
4 * Create and manage pipelines
5 *
6 * The version of the OpenAPI document: 1.6.0
7 * Contact: cicsupport@tacc.utexas.edu
8 * Generated by: https://openapi-generator.tech
9 */
10
11use 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}