1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
//! Output from the borg list command
use chrono::NaiveDateTime;
use serde::{Deserialize, Serialize};
use crate::output::common::{Encryption, Repository};
/// Output of the borg list command
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct ListRepository {
/// Information about the repository
repository: Repository,
/// Information about the encryption of the repository
encryption: Option<Encryption>,
/// Information about the archives in the repository
archives: Vec<ListArchive>,
}
/// The short output version of the archive
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct ListArchive {
/// Hexadecimal archive ID
pub id: String,
/// Name of the archive
pub name: String,
/// Start timestamp
pub start: NaiveDateTime,
}