canton_api_client/models/experimental_static_time.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/// ExperimentalStaticTime : Ledger is in the static time mode and exposes a time service.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ExperimentalStaticTime {
17 ///
18 #[serde(rename = "supported")]
19 pub supported: bool,
20}
21
22impl ExperimentalStaticTime {
23 /// Ledger is in the static time mode and exposes a time service.
24 pub fn new(supported: bool) -> ExperimentalStaticTime {
25 ExperimentalStaticTime {
26 supported,
27 }
28 }
29}
30