Skip to main content

tapis_workflows/models/
enum_http_method.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 EnumHttpMethod {
19    #[serde(rename = "get")]
20    #[default]
21    Get,
22    #[serde(rename = "post")]
23    Post,
24    #[serde(rename = "put")]
25    Put,
26    #[serde(rename = "patch")]
27    Patch,
28    #[serde(rename = "delete")]
29    Delete,
30}
31
32impl std::fmt::Display for EnumHttpMethod {
33    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
34        match self {
35            Self::Get => write!(f, "get"),
36            Self::Post => write!(f, "post"),
37            Self::Put => write!(f, "put"),
38            Self::Patch => write!(f, "patch"),
39            Self::Delete => write!(f, "delete"),
40        }
41    }
42}