Files
brk/parser/src/structs/sent_data.rs
2024-07-20 23:13:41 +02:00

15 lines
240 B
Rust

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;
}
}