simplify backup lib structure (pub use xxx:*), improve doc

This commit is contained in:
Dietmar Maurer
2019-02-12 14:13:31 +01:00
parent d78345bcfc
commit e5064ba607
10 changed files with 42 additions and 20 deletions

View File

@ -15,15 +15,23 @@ use super::dynamic_index::*;
use chrono::{Utc, TimeZone};
/// Datastore Management
///
/// A Datastore can store severals backups, and provides the
/// management interface for backup.
pub struct DataStore {
chunk_store: Arc<ChunkStore>,
gc_mutex: Mutex<bool>,
}
/// Detailed Backup Information
#[derive(Debug)]
pub struct BackupInfo {
/// Type of backup
pub backup_type: String,
/// Unique (for this type) ID
pub backup_id: String,
/// Backup timestamp
pub backup_time: DateTime<Utc>,
}