gitbundle_sdk/models/
check_payload.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.3.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CheckPayload {
17    #[serde(rename = "data", deserialize_with = "Option::deserialize")]
18    pub data: Option<serde_json::Value>,
19    #[serde(rename = "kind")]
20    pub kind: models::CheckPayloadKind,
21    #[serde(rename = "version")]
22    pub version: String,
23}
24
25impl CheckPayload {
26    pub fn new(
27        data: Option<serde_json::Value>,
28        kind: models::CheckPayloadKind,
29        version: String,
30    ) -> CheckPayload {
31        CheckPayload {
32            data,
33            kind,
34            version,
35        }
36    }
37}