windmill_api/models/
secret_migration_report.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.1
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 SecretMigrationReport {
16    /// Total number of secrets found
17    #[serde(rename = "total_secrets")]
18    pub total_secrets: i64,
19    /// Number of secrets successfully migrated
20    #[serde(rename = "migrated_count")]
21    pub migrated_count: i64,
22    /// Number of secrets that failed to migrate
23    #[serde(rename = "failed_count")]
24    pub failed_count: i64,
25    /// Details of any failures encountered during migration
26    #[serde(rename = "failures")]
27    pub failures: Vec<models::SecretMigrationFailure>,
28}
29
30impl SecretMigrationReport {
31    pub fn new(total_secrets: i64, migrated_count: i64, failed_count: i64, failures: Vec<models::SecretMigrationFailure>) -> SecretMigrationReport {
32        SecretMigrationReport {
33            total_secrets,
34            migrated_count,
35            failed_count,
36            failures,
37        }
38    }
39}
40