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#[derive(
15    Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
16)]
17pub enum EnumHttpMethod {
18    #[serde(rename = "get")]
19    #[default]
20    Get,
21    #[serde(rename = "post")]
22    Post,
23    #[serde(rename = "put")]
24    Put,
25    #[serde(rename = "patch")]
26    Patch,
27    #[serde(rename = "delete")]
28    Delete,
29}
30
31impl std::fmt::Display for EnumHttpMethod {
32    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
33        match self {
34            Self::Get => write!(f, "get"),
35            Self::Post => write!(f, "post"),
36            Self::Put => write!(f, "put"),
37            Self::Patch => write!(f, "patch"),
38            Self::Delete => write!(f, "delete"),
39        }
40    }
41}