#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateTxBodyEnvelope {
#[serde(rename = "contractId")]
pub contract_id: String,
#[serde(rename = "safetyErrors", skip_serializing_if = "Option::is_none")]
pub safety_errors: Option<Vec<crate::models::SafetyError>>,
#[serde(rename = "txBody")]
pub tx_body: Box<crate::models::TextEnvelope>,
}
impl CreateTxBodyEnvelope {
pub fn new(contract_id: String, tx_body: crate::models::TextEnvelope) -> CreateTxBodyEnvelope {
CreateTxBodyEnvelope {
contract_id,
safety_errors: None,
tx_body: Box::new(tx_body),
}
}
}