Skip to main content

dpp_domain/ports/backup/
status.rs

1//! [`BackupStatus`] — where a record stands with the provider.
2
3use serde::{Deserialize, Serialize};
4
5/// Status of a passport record within the third-party back-up copy.
6#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
7#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
8#[non_exhaustive]
9pub enum BackupStatus {
10    /// Record is stored and accessible.
11    Active,
12    /// Record has been updated (e.g. after a transfer of responsibility).
13    Updated,
14    /// Record is within the retention-locked period and cannot be removed.
15    RetentionLocked,
16    /// Retention period has expired; record may be purged by the provider.
17    Expired,
18}