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