#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateTxEnvelope {
#[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 = "tx")]
pub tx: Box<crate::models::TextEnvelope>,
}
impl CreateTxEnvelope {
pub fn new(contract_id: String, tx: crate::models::TextEnvelope) -> CreateTxEnvelope {
CreateTxEnvelope {
contract_id,
safety_errors: None,
tx: Box::new(tx),
}
}
}