1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Rosetta
*
* Build Once. Integrate Your Blockchain Everywhere.
*
* The version of the OpenAPI document: 1.4.13
*
* Generated by: https://openapi-generator.tech
*/
/// ConstructionParseRequest : ConstructionParseRequest is the input to the `/construction/parse` endpoint. It allows the caller to parse either an unsigned or signed transaction.
#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
pub struct ConstructionParseRequest {
#[serde(rename = "network_identifier")]
pub network_identifier: crate::NetworkIdentifier,
/// Signed is a boolean indicating whether the transaction is signed.
#[serde(rename = "signed")]
pub signed: bool,
/// This must be either the unsigned transaction blob returned by `/construction/payloads` or the signed transaction blob returned by `/construction/combine`.
#[serde(rename = "transaction")]
pub transaction: String,
}
impl ConstructionParseRequest {
/// ConstructionParseRequest is the input to the `/construction/parse` endpoint. It allows the caller to parse either an unsigned or signed transaction.
pub fn new(
network_identifier: crate::NetworkIdentifier,
signed: bool,
transaction: String,
) -> ConstructionParseRequest {
ConstructionParseRequest {
network_identifier,
signed,
transaction,
}
}
}