openapi_github/models/
webhook_deployment_review_requested_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 WebhookDeploymentReviewRequestedReviewersInner {
16    #[serde(rename = "reviewer", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub reviewer: Option<Option<Box<models::User2>>>,
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<Type>,
20}
21
22impl WebhookDeploymentReviewRequestedReviewersInner {
23    pub fn new() -> WebhookDeploymentReviewRequestedReviewersInner {
24        WebhookDeploymentReviewRequestedReviewersInner {
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    #[serde(rename = "Team")]
36    Team,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::User
42    }
43}
44