Skip to main content

BackupLike

Trait BackupLike 

Source
pub trait BackupLike {
    // Required methods
    fn end_time(&self) -> DateTime<Utc>;
    fn id(&self) -> &str;
}
Expand description

Anything that can stand in for a Backup during retention selection. Kept tiny so tests use trivial fakes instead of constructing full Backup CRs.

Required Methods§

Source

fn end_time(&self) -> DateTime<Utc>

The snapshot’s completion time — the GFS bucketing key (ADR §4.4 step 2).

Source

fn id(&self) -> &str

A stable identifier (kopia snapshot ID or CR name) used in the result sets.

Implementors§