fix: better serde bounds
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/clippy Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details

export-backup
Jef Roosens 2023-06-22 20:10:37 +02:00
parent 53dc3783ca
commit 188fb30343
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* `backup` CLI command
* 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
* "backups to keep" has been replaced by "chains to keep"
* Server type & version is now stored as metadata in the metadata file

View File

@ -1,5 +1,5 @@
use super::Backup;
use serde::de::DeserializeOwned;
use serde::Deserialize;
use serde::Serialize;
use std::fs::File;
use std::io;
@ -7,7 +7,7 @@ use std::path::PathBuf;
pub struct Manager<T>
where
T: Clone + Serialize + DeserializeOwned,
T: Clone + Serialize + for<'de> Deserialize<'de>,
{
backup_dir: PathBuf,
config_dir: PathBuf,
@ -20,7 +20,7 @@ where
impl<T> Manager<T>
where
T: Clone + Serialize + DeserializeOwned,
T: Clone + Serialize + for<'de> Deserialize<'de>,
{
const METADATA_FILE: &str = "alex.json";