gitbundle_sdk/models/
runner_os_context.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.3.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use 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}