config.rs (430B)
1 use serde::{Deserialize, Serialize}; 2 use std::path::PathBuf; 3 4 #[derive(Debug, Clone, Default, Serialize, Deserialize)] 5 pub struct NetConfig {} 6 7 #[derive(Debug, Clone, Copy, Serialize, Deserialize)] 8 pub enum KeyFormat { 9 Json, 10 Nsec, 11 Hex, 12 Bin, 13 } 14 15 #[derive(Debug, Clone, Serialize, Deserialize)] 16 pub struct KeyPersistenceConfig { 17 pub path: Option<PathBuf>, 18 pub format: KeyFormat, 19 pub no_overwrite: bool, 20 }