canton_api_client/models/
submit_and_wait_for_reassignment_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/// SubmitAndWaitForReassignmentRequest : This reassignment is executed as a single atomic update.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SubmitAndWaitForReassignmentRequest {
17    #[serde(rename = "reassignmentCommands", skip_serializing_if = "Option::is_none")]
18    pub reassignment_commands: Option<Box<models::ReassignmentCommands>>,
19    #[serde(rename = "eventFormat", skip_serializing_if = "Option::is_none")]
20    pub event_format: Option<Box<models::EventFormat>>,
21}
22
23impl SubmitAndWaitForReassignmentRequest {
24    /// This reassignment is executed as a single atomic update.
25    pub fn new() -> SubmitAndWaitForReassignmentRequest {
26        SubmitAndWaitForReassignmentRequest {
27            reassignment_commands: None,
28            event_format: None,
29        }
30    }
31}
32