1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
use reqwest::StatusCode;
use serde::Deserialize;

use crate::Value;

#[derive(Debug, Clone, PartialEq)]
pub struct Response {
    pub status_code: Option<StatusCode>,
    pub body: Option<String>,
    pub duration: std::time::Duration,
    pub metadata: Option<Value>,
    pub error: Option<String>,
}

#[derive(Debug, Clone, Deserialize)]
pub(crate) struct HoneyResponse {
    pub(crate) status: u16,
    pub(crate) error: Option<String>,
}