rosetta_types/construction_combine_request.rs
1/*
2 * Rosetta
3 *
4 * Build Once. Integrate Your Blockchain Everywhere.
5 *
6 * The version of the OpenAPI document: 1.4.13
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// ConstructionCombineRequest : ConstructionCombineRequest is the input to the `/construction/combine` endpoint. It contains the unsigned transaction blob returned by `/construction/payloads` and all required signatures to create a network transaction.
12
13#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
14pub struct ConstructionCombineRequest {
15 #[serde(rename = "network_identifier")]
16 pub network_identifier: crate::NetworkIdentifier,
17 #[serde(rename = "unsigned_transaction")]
18 pub unsigned_transaction: String,
19 #[serde(rename = "signatures")]
20 pub signatures: Vec<crate::Signature>,
21}
22
23impl ConstructionCombineRequest {
24 /// ConstructionCombineRequest is the input to the `/construction/combine` endpoint. It contains the unsigned transaction blob returned by `/construction/payloads` and all required signatures to create a network transaction.
25 pub fn new(
26 network_identifier: crate::NetworkIdentifier,
27 unsigned_transaction: String,
28 signatures: Vec<crate::Signature>,
29 ) -> ConstructionCombineRequest {
30 ConstructionCombineRequest {
31 network_identifier,
32 unsigned_transaction,
33 signatures,
34 }
35 }
36}