blob: 418ad35246a2d94bfdad7e8d4af84ec62630b6f7 [file]
/// Configuration for the HTTP client.
#[derive(Debug, Clone)]
pub struct HttpClientConfig {
/// The URL of the Iggy API.
pub api_url: String,
/// The number of retries to perform on transient errors.
pub retries: u32,
}
impl Default for HttpClientConfig {
fn default() -> HttpClientConfig {
HttpClientConfig {
api_url: "http://127.0.0.1:3000".to_string(),
retries: 3,
}
}
}