use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::collections::HashMap;

#[derive(Serialize, Deserialize)]
#[serde(untagged)]
pub enum WireValue {
    Text(String),
    Count(u64),
}

#[derive(Deserialize)]
pub struct RequestConfig {
    #[serde(default)]
    pub mode: String,
    #[serde(flatten)]
    pub extras: HashMap<String, Value>,
    pub status: String,
}