canton_api_client/models/unassign_command1.rs
1/*
2 * JSON Ledger API HTTP endpoints
3 *
4 * This specification version fixes the API inconsistencies where certain fields marked as required in the spec are in fact optional. If you use code generation tool based on this file, you might need to adjust the existing application code to handle those fields as optional. If you do not want to change your client code, continue using the OpenAPI specification for the latest Canton 3.4 patch release. MINIMUM_CANTON_VERSION=3.6.0
5 *
6 * The version of the OpenAPI document: 3.6.0-SNAPSHOT
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// UnassignCommand1 : Unassign a contract
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UnassignCommand1 {
17 /// The ID of the contract the client wants to unassign. Must be a valid LedgerString (as described in ``value.proto``). Required
18 #[serde(rename = "contractId")]
19 pub contract_id: String,
20 /// The ID of the source synchronizer Must be a valid synchronizer id Required
21 #[serde(rename = "source")]
22 pub source: String,
23 /// The ID of the target synchronizer Must be a valid synchronizer id Required
24 #[serde(rename = "target")]
25 pub target: String,
26}
27
28impl UnassignCommand1 {
29 /// Unassign a contract
30 pub fn new(contract_id: String, source: String, target: String) -> UnassignCommand1 {
31 UnassignCommand1 {
32 contract_id,
33 source,
34 target,
35 }
36 }
37}
38