Skip to main content

gitbundle_sdk/models/
archive_attribute.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
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 ArchiveAttribute {
19    #[serde(rename = "export_ignore")]
20    #[default]
21    ExportIgnore,
22    #[serde(rename = "export_subst")]
23    ExportSubst,
24}
25
26impl std::fmt::Display for ArchiveAttribute {
27    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        match self {
29            Self::ExportIgnore => write!(f, "export_ignore"),
30            Self::ExportSubst => write!(f, "export_subst"),
31        }
32    }
33}