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