fix: better serde bounds
							parent
							
								
									53dc3783ca
								
							
						
					
					
						commit
						188fb30343
					
				|  | @ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | ||||||
| 
 | 
 | ||||||
| * `backup` CLI command | * `backup` CLI command | ||||||
| * Incremental backups | * Incremental backups | ||||||
|     * Chain length descibres how many incremental backups to create from the |     * Chain length describes how many incremental backups to create from the | ||||||
|       same full backup |       same full backup | ||||||
|     * "backups to keep" has been replaced by "chains to keep" |     * "backups to keep" has been replaced by "chains to keep" | ||||||
| * Server type & version is now stored as metadata in the metadata file | * Server type & version is now stored as metadata in the metadata file | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| use super::Backup; | use super::Backup; | ||||||
| use serde::de::DeserializeOwned; | use serde::Deserialize; | ||||||
| use serde::Serialize; | use serde::Serialize; | ||||||
| use std::fs::File; | use std::fs::File; | ||||||
| use std::io; | use std::io; | ||||||
|  | @ -7,7 +7,7 @@ use std::path::PathBuf; | ||||||
| 
 | 
 | ||||||
| pub struct Manager<T> | pub struct Manager<T> | ||||||
| where | where | ||||||
|     T: Clone + Serialize + DeserializeOwned, |     T: Clone + Serialize + for<'de> Deserialize<'de>, | ||||||
| { | { | ||||||
|     backup_dir: PathBuf, |     backup_dir: PathBuf, | ||||||
|     config_dir: PathBuf, |     config_dir: PathBuf, | ||||||
|  | @ -20,7 +20,7 @@ where | ||||||
| 
 | 
 | ||||||
| impl<T> Manager<T> | impl<T> Manager<T> | ||||||
| where | where | ||||||
|     T: Clone + Serialize + DeserializeOwned, |     T: Clone + Serialize + for<'de> Deserialize<'de>, | ||||||
| { | { | ||||||
|     const METADATA_FILE: &str = "alex.json"; |     const METADATA_FILE: &str = "alex.json"; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue