use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct HttpConfig {
pub timeout: Option<u64>,
pub header: Option<HashMap<String, String>>,
pub rate_limit: Option<RateLimit>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct RateLimit {
pub max_count: u64,
pub fill_duration: f64,
}