Skip to main content

canton_api_client/models/
command1_one_of_2.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Command1OneOf2 {
16    #[serde(rename = "UnassignCommand")]
17    pub unassign_command: Box<models::UnassignCommand>,
18}
19
20impl Command1OneOf2 {
21    pub fn new(unassign_command: models::UnassignCommand) -> Command1OneOf2 {
22        Command1OneOf2 {
23            unassign_command: Box::new(unassign_command),
24        }
25    }
26}
27