canton-api-client 3.3.0-0.1.1

Canton Ledger API rust client
Documentation
/*
 * JSON Ledger API HTTP endpoints
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 3.3.0-SNAPSHOT
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SubmitAndWaitResponse {
    /// The id of the transaction that resulted from the submitted command. Must be a valid LedgerString (as described in ``value.proto``). Required
    #[serde(rename = "updateId")]
    pub update_id: String,
    /// The details of the offset field are described in ``community/ledger-api/README.md``. Required
    #[serde(rename = "completionOffset")]
    pub completion_offset: i64,
}

impl SubmitAndWaitResponse {
    pub fn new(update_id: String, completion_offset: i64) -> SubmitAndWaitResponse {
        SubmitAndWaitResponse {
            update_id,
            completion_offset,
        }
    }
}