windmill-api 1.817.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.817.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 TrashItemWithData {
    #[serde(rename = "id")]
    pub id: i64,
    #[serde(rename = "workspace_id")]
    pub workspace_id: String,
    /// script, flow, app, schedule, variable, resource, or a trigger kind such as http_trigger
    #[serde(rename = "item_kind")]
    pub item_kind: String,
    #[serde(rename = "item_path")]
    pub item_path: String,
    #[serde(rename = "deleted_by")]
    pub deleted_by: String,
    #[serde(rename = "deleted_at")]
    pub deleted_at: String,
    /// when the item is permanently deleted unless restored first
    #[serde(rename = "expires_at")]
    pub expires_at: String,
    /// the deleted rows as they were stored; the shape depends on the kind, and a secret variable's value stays encrypted 
    #[serde(rename = "item_data")]
    pub item_data: std::collections::HashMap<String, serde_json::Value>,
}

impl TrashItemWithData {
    pub fn new(id: i64, workspace_id: String, item_kind: String, item_path: String, deleted_by: String, deleted_at: String, expires_at: String, item_data: std::collections::HashMap<String, serde_json::Value>) -> TrashItemWithData {
        TrashItemWithData {
            id,
            workspace_id,
            item_kind,
            item_path,
            deleted_by,
            deleted_at,
            expires_at,
            item_data,
        }
    }
}