rosetta_types/
block_transaction_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/// BlockTransactionRequest : A BlockTransactionRequest is used to fetch a Transaction included in a block that is not returned in a BlockResponse.
12
13#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
14pub struct BlockTransactionRequest {
15    #[serde(rename = "network_identifier")]
16    pub network_identifier: crate::NetworkIdentifier,
17    #[serde(rename = "block_identifier")]
18    pub block_identifier: crate::BlockIdentifier,
19    #[serde(rename = "transaction_identifier")]
20    pub transaction_identifier: crate::TransactionIdentifier,
21}
22
23impl BlockTransactionRequest {
24    /// A BlockTransactionRequest is used to fetch a Transaction included in a block that is not returned in a BlockResponse.
25    pub fn new(
26        network_identifier: crate::NetworkIdentifier,
27        block_identifier: crate::BlockIdentifier,
28        transaction_identifier: crate::TransactionIdentifier,
29    ) -> BlockTransactionRequest {
30        BlockTransactionRequest {
31            network_identifier,
32            block_identifier,
33            transaction_identifier,
34        }
35    }
36}