netbox_openapi/models/
patched_script_input_request.rs

1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.4.2-Docker-3.4.1 (4.4)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct PatchedScriptInputRequest {
13    #[serde(
14        rename = "data",
15        default,
16        with = "::serde_with::rust::double_option",
17        skip_serializing_if = "Option::is_none"
18    )]
19    pub data: Option<Option<serde_json::Value>>,
20    #[serde(rename = "commit", skip_serializing_if = "Option::is_none")]
21    pub commit: Option<bool>,
22    #[serde(
23        rename = "schedule_at",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub schedule_at: Option<Option<String>>,
29    #[serde(
30        rename = "interval",
31        default,
32        with = "::serde_with::rust::double_option",
33        skip_serializing_if = "Option::is_none"
34    )]
35    pub interval: Option<Option<i32>>,
36}
37
38impl PatchedScriptInputRequest {
39    pub fn new() -> PatchedScriptInputRequest {
40        PatchedScriptInputRequest {
41            data: None,
42            commit: None,
43            schedule_at: None,
44            interval: None,
45        }
46    }
47}