canton_api_client/models/
transaction_format.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TransactionFormat {
17 #[serde(rename = "eventFormat", skip_serializing_if = "Option::is_none")]
18 pub event_format: Option<Box<models::EventFormat>>,
19 #[serde(rename = "transactionShape")]
20 pub transaction_shape: Box<models::TransactionShape>,
21}
22
23impl TransactionFormat {
24 pub fn new(transaction_shape: models::TransactionShape) -> TransactionFormat {
26 TransactionFormat {
27 event_format: None,
28 transaction_shape: Box::new(transaction_shape),
29 }
30 }
31}
32