openapi_github/models/
webhooks_reviewers_inner.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct WebhooksReviewersInner {
16    #[serde(rename = "reviewer", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub reviewer: Option<Option<Box<models::User>>>,
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<Type>,
20}
21
22impl WebhooksReviewersInner {
23    pub fn new() -> WebhooksReviewersInner {
24        WebhooksReviewersInner {
25            reviewer: None,
26            r#type: None,
27        }
28    }
29}
30/// 
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Type {
33    #[serde(rename = "User")]
34    User,
35}
36
37impl Default for Type {
38    fn default() -> Type {
39        Self::User
40    }
41}
42