gitbundle_sdk/models/
workflow_rerun_scope.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 WorkflowRerunScope {
19 #[serde(rename = "all")]
20 #[default]
21 All,
22 #[serde(rename = "failed")]
23 Failed,
24}
25
26impl std::fmt::Display for WorkflowRerunScope {
27 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28 match self {
29 Self::All => write!(f, "all"),
30 Self::Failed => write!(f, "failed"),
31 }
32 }
33}