mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 22:59:58 -07:00
brk: first commit
This commit is contained in:
18
_src/structs/partial_txout_data.rs
Normal file
18
_src/structs/partial_txout_data.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
use super::{Address, Amount};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct PartialTxoutData {
|
||||
pub amount: Amount,
|
||||
pub address: Option<Address>,
|
||||
pub address_index_opt: Option<u32>,
|
||||
}
|
||||
|
||||
impl PartialTxoutData {
|
||||
pub fn new(address: Option<Address>, amount: Amount, address_index_opt: Option<u32>) -> Self {
|
||||
Self {
|
||||
address,
|
||||
amount,
|
||||
address_index_opt,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user