/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DiffRawScriptsWithDeployedRequestWorkspaceDepsInner {
    /// CLI path (e.g. dependencies/package.json)
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "language")]
    pub language: models::ScriptLang,
    /// named workspace dependency (null for default)
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// SHA256 content hash
    #[serde(rename = "hash")]
    pub hash: String,
}

impl DiffRawScriptsWithDeployedRequestWorkspaceDepsInner {
    pub fn new(path: String, language: models::ScriptLang, hash: String) -> DiffRawScriptsWithDeployedRequestWorkspaceDepsInner {
        DiffRawScriptsWithDeployedRequestWorkspaceDepsInner {
            path,
            language,
            name: None,
            hash,
        }
    }
}

