use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct JsSubmitAndWaitForTransactionRequest {
#[serde(rename = "commands")]
pub commands: Box<models::JsCommands>,
#[serde(rename = "transactionFormat")]
pub transaction_format: Box<models::TransactionFormat>,
}
impl JsSubmitAndWaitForTransactionRequest {
pub fn new(commands: models::JsCommands, transaction_format: models::TransactionFormat) -> JsSubmitAndWaitForTransactionRequest {
JsSubmitAndWaitForTransactionRequest {
commands: Box::new(commands),
transaction_format: Box::new(transaction_format),
}
}
}