canton_api_client/models/
js_get_active_contracts_response.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 JsGetActiveContractsResponse {
16    /// The workflow ID used in command submission which corresponds to the contract_entry. Only set if the ``workflow_id`` for the command was set. Must be a valid LedgerString (as described in ``value.proto``). Optional
17    #[serde(rename = "workflowId")]
18    pub workflow_id: String,
19    #[serde(rename = "contractEntry")]
20    pub contract_entry: Box<models::JsContractEntry>,
21}
22
23impl JsGetActiveContractsResponse {
24    pub fn new(workflow_id: String, contract_entry: models::JsContractEntry) -> JsGetActiveContractsResponse {
25        JsGetActiveContractsResponse {
26            workflow_id,
27            contract_entry: Box::new(contract_entry),
28        }
29    }
30}
31