shodan_client/
response.rs

1use serde::Deserialize;
2
3#[derive(Deserialize, Debug)]
4#[serde(untagged)]
5pub enum ShodanClientResponse<T> {
6    Error(ErrorResponse),
7    Response(T),
8}
9
10#[derive(Deserialize, Debug)]
11pub struct ErrorResponse {
12    pub error: String,
13}