canton_api_client/models/
js_status.rs

1/*
2 * JSON Ledger API HTTP endpoints
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 3.3.0-SNAPSHOT
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct JsStatus {
16    #[serde(rename = "code")]
17    pub code: i32,
18    #[serde(rename = "message")]
19    pub message: String,
20    #[serde(rename = "details", skip_serializing_if = "Option::is_none")]
21    pub details: Option<Vec<models::Any>>,
22}
23
24impl JsStatus {
25    pub fn new(code: i32, message: String) -> JsStatus {
26        JsStatus {
27            code,
28            message,
29            details: None,
30        }
31    }
32}
33