gpt_batch_scribe/http_method.rs
1crate::ix!();
2
3/// Enumeration of possible HTTP methods.
4#[derive(Debug, Serialize, Deserialize)]
5#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
6pub enum HttpMethod {
7 Get,
8 Post,
9}
10
11impl fmt::Display for HttpMethod {
12 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
13 match self {
14 HttpMethod::Get => write!(f, "GET"),
15 HttpMethod::Post => write!(f, "POST"),
16 }
17 }
18}