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