pub use serde::{Deserialize, Serialize};
#[derive(PartialEq, Serialize, Deserialize, Debug, Clone)]
pub struct FileInfo {
pub name: Option<String>,
pub path: String,
pub backuponly: Option<bool>,
pub onlyon: Option<String>,
}
impl std::fmt::Display for FileInfo {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
if let Some(n) = &self.name {
write!(f, "{}", n)
} else {
write!(f, "{}", self.path)
}
}
}