integration-module/crates/integr-structs/src/api.rs

24 lines
451 B
Rust

use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Debug)]
pub struct ApiConfig {
#[serde(default)]
pub endpoints : Vec<ApiEndpoint>,
pub delay : u32,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct ApiEndpoint {
pub url : String,
pub method : String,
}
impl Default for ApiConfig {
fn default() -> Self {
ApiConfig {
endpoints : vec![],
delay : 0,
}
}
}