wicked-waifus-rs/shorekeeper-http/src/config.rs

16 lines
324 B
Rust
Raw Normal View History

2024-09-11 16:37:46 +00:00
use crate::util::from_base64;
use serde::Deserialize;
#[derive(Deserialize)]
pub struct NetworkSettings {
pub http_addr: String,
}
#[derive(Deserialize)]
pub struct AesSettings {
#[serde(deserialize_with = "from_base64")]
pub key: Vec<u8>,
#[serde(deserialize_with = "from_base64")]
pub iv: Vec<u8>,
}