use serde::Deserialize;
use std::collections::HashMap;
#[derive(Deserialize, Debug)]
pub struct FunctionResponse {
pub ok: bool,
pub result: FunctionResult,
}
#[derive(Deserialize, Debug)]
pub struct FunctionResult {
pub event: serde_json::Value,
pub function: HashMap<String, Vec<FunctionDetails>>,
}
#[derive(Deserialize, Debug, Clone)]
pub struct FunctionDetails {
pub name: String,
pub filtered: bool,
}
#[derive(Deserialize, Debug)]
pub struct EventDetails {
pub name: String,
pub filtered: bool,
}
#[derive(Deserialize, Debug)]
pub struct EventResult {
pub function: serde_json::Value,
pub event: HashMap<String, Vec<EventDetails>>,
}
#[derive(Deserialize, Debug)]
pub struct EventResponse {
pub ok: bool,
pub result: EventResult,
}