canton_api_client/models/
update_format.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/// UpdateFormat : A format specifying what updates to include and how to render them.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateFormat {
17    #[serde(rename = "includeTransactions", skip_serializing_if = "Option::is_none")]
18    pub include_transactions: Option<Box<models::TransactionFormat>>,
19    #[serde(rename = "includeReassignments", skip_serializing_if = "Option::is_none")]
20    pub include_reassignments: Option<Box<models::EventFormat>>,
21    #[serde(rename = "includeTopologyEvents", skip_serializing_if = "Option::is_none")]
22    pub include_topology_events: Option<Box<models::TopologyFormat>>,
23}
24
25impl UpdateFormat {
26    /// A format specifying what updates to include and how to render them.
27    pub fn new() -> UpdateFormat {
28        UpdateFormat {
29            include_transactions: None,
30            include_reassignments: None,
31            include_topology_events: None,
32        }
33    }
34}
35