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///
15#[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}