coinbase_mesh/models/
block_transaction_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BlockTransactionResponse {
17 #[serde(rename = "transaction")]
18 pub transaction: Box<models::Transaction>,
19}
20
21impl BlockTransactionResponse {
22 pub fn new(transaction: models::Transaction) -> BlockTransactionResponse {
24 BlockTransactionResponse {
25 transaction: Box::new(transaction),
26 }
27 }
28}
29