atomic_bomb_engine/models/
setup.rs

1use crate::models::multipart_option::MultipartOption;
2use serde::{Deserialize, Serialize};
3use serde_json::Value;
4use std::collections::HashMap;
5
6#[derive(Clone, Serialize, Deserialize, Debug)]
7pub struct JsonpathExtract {
8    pub key: String,
9    pub jsonpath: String,
10}
11
12#[derive(Clone, Serialize, Deserialize, Debug)]
13pub struct SetupApiEndpoint {
14    pub name: String,
15    pub url: String,
16    pub method: String,
17    pub json: Option<Value>,
18    pub form_data: Option<HashMap<String, String>>,
19    pub multipart_options: Option<Vec<MultipartOption>>,
20    pub headers: Option<HashMap<String, String>>,
21    pub cookies: Option<String>,
22    pub jsonpath_extract: Option<Vec<JsonpathExtract>>,
23}