gitbundle_sdk/models/
pullreq_activity_kind.rs

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