windmill_api/models/
secret_migration_report.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SecretMigrationReport {
16 #[serde(rename = "total_secrets")]
18 pub total_secrets: i64,
19 #[serde(rename = "migrated_count")]
21 pub migrated_count: i64,
22 #[serde(rename = "failed_count")]
24 pub failed_count: i64,
25 #[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