catalyst 0.2.9

A lightweight API testing tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::Deserialize;
use std::collections::HashMap;

#[derive(Debug, Deserialize, Clone)]
pub struct Config {
    pub base_url: String,
    pub auth_method: Option<String>,
    pub auth_token: Option<String>,
    pub default_headers: Option<HashMap<String, String>>,
    pub env: Option<EnvConfig>,
    pub insecure: Option<bool>,
    pub allowed_commands: Option<Vec<String>>,
}

#[derive(Debug, Deserialize, Clone)]
pub struct EnvConfig {
    pub store: Option<HashMap<String, String>>,
}