canton_api_client/models/tree_event.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/// TreeEvent : Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Each tree event message type below contains a ``witness_parties`` field which indicates the subset of the requested parties that can see the event in question. Note that transaction trees might contain events with _no_ witness parties, which were included simply because they were children of events which have witnesses.
15/// Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. Each tree event message type below contains a ``witness_parties`` field which indicates the subset of the requested parties that can see the event in question. Note that transaction trees might contain events with _no_ witness parties, which were included simply because they were children of events which have witnesses.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum TreeEvent {
19 TreeEventOneOf(Box<models::TreeEventOneOf>),
20 TreeEventOneOf1(Box<models::TreeEventOneOf1>),
21}
22
23impl Default for TreeEvent {
24 fn default() -> Self {
25 Self::TreeEventOneOf(Default::default())
26 }
27}
28