openapi_github/models/
webhooks_repository_selection.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// WebhooksRepositorySelection : Describe whether all repositories have been selected or there's a selection involved
15/// Describe whether all repositories have been selected or there's a selection involved
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum WebhooksRepositorySelection {
18    #[serde(rename = "all")]
19    All,
20    #[serde(rename = "selected")]
21    Selected,
22
23}
24
25impl std::fmt::Display for WebhooksRepositorySelection {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::All => write!(f, "all"),
29            Self::Selected => write!(f, "selected"),
30        }
31    }
32}
33
34impl Default for WebhooksRepositorySelection {
35    fn default() -> WebhooksRepositorySelection {
36        Self::All
37    }
38}
39