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