windmill-api 1.864.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.864.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 CheckSchemaContractsRequest {
    #[serde(rename = "language")]
    pub language: models::ScriptLang,
    #[serde(rename = "content")]
    pub content: String,
    /// The script's path. A `// materialize` that names no table writes the table named after the script, so without it such a target is not checked. 
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
}

impl CheckSchemaContractsRequest {
    pub fn new(language: models::ScriptLang, content: String) -> CheckSchemaContractsRequest {
        CheckSchemaContractsRequest {
            language,
            content,
            path: None,
        }
    }
}