windmill_api/models/
get_runnable_200_response.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.556.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetRunnable200Response {
16    #[serde(rename = "workspace")]
17    pub workspace: String,
18    #[serde(rename = "endpoint_async")]
19    pub endpoint_async: String,
20    #[serde(rename = "endpoint_sync")]
21    pub endpoint_sync: String,
22    #[serde(rename = "summary")]
23    pub summary: String,
24    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
25    pub description: Option<String>,
26    #[serde(rename = "kind")]
27    pub kind: String,
28}
29
30impl GetRunnable200Response {
31    pub fn new(workspace: String, endpoint_async: String, endpoint_sync: String, summary: String, kind: String) -> GetRunnable200Response {
32        GetRunnable200Response {
33            workspace,
34            endpoint_async,
35            endpoint_sync,
36            summary,
37            description: None,
38            kind,
39        }
40    }
41}
42