openapi_github/models/
webhook_check_run_created_form_encoded.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/// WebhookCheckRunCreatedFormEncoded : The check_run.created webhook encoded with URL encoding
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WebhookCheckRunCreatedFormEncoded {
17    /// A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object.
18    #[serde(rename = "payload")]
19    pub payload: String,
20}
21
22impl WebhookCheckRunCreatedFormEncoded {
23    /// The check_run.created webhook encoded with URL encoding
24    pub fn new(payload: String) -> WebhookCheckRunCreatedFormEncoded {
25        WebhookCheckRunCreatedFormEncoded {
26            payload,
27        }
28    }
29}
30