canic_core/dto/
validation.rs

1use crate::dto::prelude::*;
2
3///
4/// ValidationReport
5///
6
7#[allow(clippy::struct_excessive_bools)]
8#[derive(CandidType, Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
9pub struct ValidationReport {
10    pub ok: bool,
11    pub registry_directory_consistent: bool,
12    pub unique_directory_roles: bool,
13    pub env_complete: bool,
14    pub issues: Vec<ValidationIssue>,
15}
16
17///
18/// ValidationIssue
19///
20
21#[derive(CandidType, Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
22pub struct ValidationIssue {
23    pub code: String,
24    pub message: String,
25}