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:
14
_src/structs/sent_data.rs
Normal file
14
_src/structs/sent_data.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use super::Amount;
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
pub struct SentData {
|
||||
pub volume: Amount,
|
||||
pub count: u32,
|
||||
}
|
||||
|
||||
impl SentData {
|
||||
pub fn send(&mut self, amount: Amount) {
|
||||
self.volume += amount;
|
||||
self.count += 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user