use serde::{Deserialize, Serialize};
use std::path::PathBuf;
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct Checkpoint {
pub root: PathBuf,
pub last_path: Option<PathBuf>,
pub config_hash: u64,
}
impl Checkpoint {
pub fn new(root: PathBuf, config_hash: u64) -> Self {
Self {
root,
last_path: None,
config_hash,
}
}
}