canton_api_client/models/
command_one_of_2.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CommandOneOf2 {
16 #[serde(rename = "ExerciseByKeyCommand")]
17 pub exercise_by_key_command: Box<models::ExerciseByKeyCommand>,
18}
19
20impl CommandOneOf2 {
21 pub fn new(exercise_by_key_command: models::ExerciseByKeyCommand) -> CommandOneOf2 {
22 CommandOneOf2 {
23 exercise_by_key_command: Box::new(exercise_by_key_command),
24 }
25 }
26}
27