canton_api_client/models/
get_update_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetUpdateByIdRequest {
16    /// The ID of a particular update. Must be a valid LedgerString (as described in ``value.proto``). Required
17    #[serde(rename = "updateId")]
18    pub update_id: String,
19    #[serde(rename = "updateFormat", skip_serializing_if = "Option::is_none")]
20    pub update_format: Option<Box<models::UpdateFormat>>,
21}
22
23impl GetUpdateByIdRequest {
24    pub fn new(update_id: String) -> GetUpdateByIdRequest {
25        GetUpdateByIdRequest {
26            update_id,
27            update_format: None,
28        }
29    }
30}
31