Skip to main content

windmill_api/models/
diff_raw_scripts_with_deployed_request.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.664.0
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 DiffRawScriptsWithDeployedRequest {
16    /// map of script path to SHA256 content hash
17    #[serde(rename = "scripts")]
18    pub scripts: std::collections::HashMap<String, String>,
19    /// workspace dependencies to diff
20    #[serde(rename = "workspace_deps", skip_serializing_if = "Option::is_none")]
21    pub workspace_deps: Option<Vec<models::DiffRawScriptsWithDeployedRequestWorkspaceDepsInner>>,
22}
23
24impl DiffRawScriptsWithDeployedRequest {
25    pub fn new(scripts: std::collections::HashMap<String, String>) -> DiffRawScriptsWithDeployedRequest {
26        DiffRawScriptsWithDeployedRequest {
27            scripts,
28            workspace_deps: None,
29        }
30    }
31}
32