windmill-api 1.894.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.894.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompletedJobResultShape200Response {
    /// the JSON type of the value (object, array, string, ...)
    #[serde(rename = "type")]
    pub r#type: String,
    /// characters in the value's JSON text
    #[serde(rename = "length")]
    pub length: i32,
    /// up to 20 of the keys, for an object
    #[serde(rename = "keys", skip_serializing_if = "Option::is_none")]
    pub keys: Option<Vec<String>>,
    /// the number of elements, for a list
    #[serde(rename = "item_count", skip_serializing_if = "Option::is_none")]
    pub item_count: Option<i32>,
    /// the first 100 elements, for a list
    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
    pub items: Option<Vec<models::GetCompletedJobResultShape200ResponseItemsInner>>,
}

impl GetCompletedJobResultShape200Response {
    pub fn new(r#type: String, length: i32) -> GetCompletedJobResultShape200Response {
        GetCompletedJobResultShape200Response {
            r#type,
            length,
            keys: None,
            item_count: None,
            items: None,
        }
    }
}