openapi-github 0.1.0

OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
Documentation
/*
 * GitHub's official OpenAPI spec + Octokit extension
 *
 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
 *
 * The version of the OpenAPI document: 16.6.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReposCreateDispatchEventRequest {
    /// A custom webhook event name. Must be 100 characters or fewer.
    #[serde(rename = "event_type")]
    pub event_type: String,
    /// JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10.
    #[serde(rename = "client_payload", skip_serializing_if = "Option::is_none")]
    pub client_payload: Option<std::collections::HashMap<String, serde_json::Value>>,
}

impl ReposCreateDispatchEventRequest {
    pub fn new(event_type: String) -> ReposCreateDispatchEventRequest {
        ReposCreateDispatchEventRequest {
            event_type,
            client_payload: None,
        }
    }
}