windmill_api/models/
secret_migration_failure.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.612.2
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 SecretMigrationFailure {
16    /// Workspace ID where the secret is located
17    #[serde(rename = "workspace_id")]
18    pub workspace_id: String,
19    /// Path of the secret that failed to migrate
20    #[serde(rename = "path")]
21    pub path: String,
22    /// Error message
23    #[serde(rename = "error")]
24    pub error: String,
25}
26
27impl SecretMigrationFailure {
28    pub fn new(workspace_id: String, path: String, error: String) -> SecretMigrationFailure {
29        SecretMigrationFailure {
30            workspace_id,
31            path,
32            error,
33        }
34    }
35}
36