antimatter_api/models/error.rs
1/*
2 * Antimatter Public API
3 *
4 * Interact with the Antimatter Cloud API
5 *
6 * The version of the OpenAPI document: 2.0.13
7 * Contact: support@antimatter.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Error : An internal error
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Error {
17 #[serde(rename = "traceID")]
18 pub trace_id: String,
19 #[serde(rename = "message")]
20 pub message: String,
21}
22
23impl Error {
24 /// An internal error
25 pub fn new(trace_id: String, message: String) -> Error {
26 Error {
27 trace_id,
28 message,
29 }
30 }
31}
32