rosetta_types/
construction_hash_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/// ConstructionHashRequest : ConstructionHashRequest is the input to the `/construction/hash` endpoint.
12
13#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
14pub struct ConstructionHashRequest {
15    #[serde(rename = "network_identifier")]
16    pub network_identifier: crate::NetworkIdentifier,
17    #[serde(rename = "signed_transaction")]
18    pub signed_transaction: String,
19}
20
21impl ConstructionHashRequest {
22    /// ConstructionHashRequest is the input to the `/construction/hash` endpoint.
23    pub fn new(
24        network_identifier: crate::NetworkIdentifier,
25        signed_transaction: String,
26    ) -> ConstructionHashRequest {
27        ConstructionHashRequest {
28            network_identifier,
29            signed_transaction,
30        }
31    }
32}