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