gazelle_api 0.9.1-alpha.1

Gazelle API Client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct ApiResponse<T> {
    /// Status
    /// Either `success` or `failure`
    pub status: String,
    /// API response
    /// Only popualted on success
    pub response: Option<T>,
    /// Explanation of error
    pub error: Option<String>,
}