eclipsis_rs/models/
api_error.rs

1/*
2 * xethlyx's api server
3 *
4 * Public APIs for use within whatever you want. These are ratelimited, so try to keep requests to a minimum.  Future use of the API will require an API key.  ## API Keys API keys need to be passed alongside every request. With an API key, you are also expected to adhere to the following guidelines:   - Do not share your API key.   - Data can be retained for a maximum of 30 days (this is to adhere with GDPR guidelines).  API keys can also be saved to the browser for convenience using the client login/logout APIs.  You can obtain an API key by asking staff in the [Eclipsis discord](https://discord.gg/AkDsUtz). 
5 *
6 * The version of the OpenAPI document: 3.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// ApiError : A generic error that is returned if something goes wrong.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct ApiError {
17    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
18    pub message: Option<String>,
19    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
20    pub success: Option<bool>,
21}
22
23impl ApiError {
24    /// A generic error that is returned if something goes wrong.
25    pub fn new() -> ApiError {
26        ApiError {
27            message: None,
28            success: None,
29        }
30    }
31}
32
33