dpp_domain/ports/backup/verification.rs
1//! [`BackupVerification`] — the result of a back-up integrity check.
2
3use chrono::{DateTime, Utc};
4use serde::{Deserialize, Serialize};
5
6use super::status::BackupStatus;
7
8/// Verification result from the back-up integrity check.
9#[derive(Debug, Clone, Serialize, Deserialize)]
10#[serde(rename_all = "camelCase")]
11pub struct BackupVerification {
12 /// Whether the stored copy matches the provided content hash.
13 pub integrity_ok: bool,
14 /// Whether the provider confirms the record is still accessible.
15 pub accessible: bool,
16 /// Current back-up status.
17 pub status: BackupStatus,
18 /// Timestamp of the last integrity check performed by the provider.
19 pub last_verified_at: DateTime<Utc>,
20}