Skip to content
Snippets Groups Projects
Verified Commit cf44f823 authored by nfontrod's avatar nfontrod
Browse files

src/config_structure.rs: delete repository table

parent 249bc88d
No related branches found
No related tags found
No related merge requests found
use colored::Colorize; use colored::Colorize;
/// This module contains the structure of the gblk config file /// This module contains the structure of the gblk config file
use serde_derive::{Deserialize, Serialize}; use serde_derive::{Deserialize, Serialize};
use toml::{self, Value};
/// /// Structure containing the global definition of the borg config file /// /// Structure containing the global definition of the borg config file
#[derive(Debug, Deserialize, Serialize, Clone)] #[derive(Debug, Deserialize, Serialize, Clone)]
pub struct Config { pub struct Config {
pub repository: Option<Repository>,
pub gblk_prune: Option<GblkConfig>, pub gblk_prune: Option<GblkConfig>,
pub gblk_remote: Option<Vec<RemoteConfig>>, pub gblk_remote: Option<Vec<RemoteConfig>>,
} }
/// Structure that store the current borg configuration for the project
#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct Repository {
pub version: Value,
pub segments_per_dir: usize,
pub max_segment_size: usize,
pub append_only: usize,
pub storage_quota: usize,
pub additional_free_space: usize,
pub id: String,
}
/// Structure corresponding to the gblk prune config to automatically use /// Structure corresponding to the gblk prune config to automatically use
/// inside a project /// inside a project
#[derive(Debug, Deserialize, Serialize, Clone)] #[derive(Debug, Deserialize, Serialize, Clone)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment