windmill_api/models/
delivery_type.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum DeliveryType {
17 #[serde(rename = "push")]
18 Push,
19 #[serde(rename = "pull")]
20 Pull,
21
22}
23
24impl std::fmt::Display for DeliveryType {
25 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
26 match self {
27 Self::Push => write!(f, "push"),
28 Self::Pull => write!(f, "pull"),
29 }
30 }
31}
32
33impl Default for DeliveryType {
34 fn default() -> DeliveryType {
35 Self::Push
36 }
37}
38