windmill-api 1.683.1

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.683.1
 * 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 GetRunnable200Response {
    #[serde(rename = "workspace")]
    pub workspace: String,
    #[serde(rename = "endpoint_async")]
    pub endpoint_async: String,
    #[serde(rename = "endpoint_sync")]
    pub endpoint_sync: String,
    #[serde(rename = "summary")]
    pub summary: String,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "kind")]
    pub kind: String,
}

impl GetRunnable200Response {
    pub fn new(workspace: String, endpoint_async: String, endpoint_sync: String, summary: String, kind: String) -> GetRunnable200Response {
        GetRunnable200Response {
            workspace,
            endpoint_async,
            endpoint_sync,
            summary,
            description: None,
            kind,
        }
    }
}