canton_api_client/models/
get_transaction_by_id_request.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/// GetTransactionByIdRequest : Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetTransactionByIdRequest {
17    /// The ID of a particular transaction. Must be a valid LedgerString (as described in ``value.proto``). Required
18    #[serde(rename = "updateId")]
19    pub update_id: String,
20    /// Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. The parties whose events the client expects to see. Events that are not visible for the parties in this collection will not be present in the response. Each element must be a valid PartyIdString (as described in ``value.proto``). Must be set for GetTransactionTreeById request. Optional for backwards compatibility for GetTransactionById request: if defined transaction_format must be unset (falling back to defaults).
21    #[serde(rename = "requestingParties", skip_serializing_if = "Option::is_none")]
22    pub requesting_parties: Option<Vec<String>>,
23    #[serde(rename = "transactionFormat", skip_serializing_if = "Option::is_none")]
24    pub transaction_format: Option<Box<models::TransactionFormat>>,
25}
26
27impl GetTransactionByIdRequest {
28    /// Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
29    pub fn new(update_id: String) -> GetTransactionByIdRequest {
30        GetTransactionByIdRequest {
31            update_id,
32            requesting_parties: None,
33            transaction_format: None,
34        }
35    }
36}
37