use serde::Deserialize; use std::path::PathBuf; /// SFTP Config #[derive(Debug, Deserialize, Clone)] pub struct SFTPConfig { /// Remote server address pub server_addr: String, /// Remote output directory pub remote_dir: PathBuf, /// Remote server username pub username: String, /// Public key for key auth pub public_key: Option, /// Private key for key auth pub private_key: Option, /// Password if using password auth pub password: Option, } /// FTP Config #[derive(Debug, Deserialize, Clone)] pub struct FTPConfig { /// Remote server address pub server_addr: String, /// Remote output directory pub remote_dir: PathBuf, /// Remote server username pub username: String, /// Password pub password: String, } /// File Config #[derive(Debug, Deserialize, Clone)] pub struct FileConfig { /// Path to backup to pub path: PathBuf, }