canton_api_client/models/
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 Status {
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    #[serde(rename = "unknownFields")]
23    pub unknown_fields: String,
24}
25
26impl Status {
27    pub fn new(code: i32, message: String, unknown_fields: String) -> Status {
28        Status {
29            code,
30            message,
31            details: None,
32            unknown_fields,
33        }
34    }
35}
36