windmill_api/models/
get_hub_script_by_path_200_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetHubScriptByPath200Response {
16 #[serde(rename = "content")]
17 pub content: String,
18 #[serde(rename = "lockfile", skip_serializing_if = "Option::is_none")]
19 pub lockfile: Option<String>,
20 #[serde(rename = "schema", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21 pub schema: Option<Option<serde_json::Value>>,
22 #[serde(rename = "language")]
23 pub language: String,
24 #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
25 pub summary: Option<String>,
26}
27
28impl GetHubScriptByPath200Response {
29 pub fn new(content: String, language: String) -> GetHubScriptByPath200Response {
30 GetHubScriptByPath200Response {
31 content,
32 lockfile: None,
33 schema: None,
34 language,
35 summary: None,
36 }
37 }
38}
39