Files
brk/crates/brk_computer/src/internal/block_windows.rs
2026-02-27 01:23:36 +01:00

14 lines
378 B
Rust

//! Base generic struct with 2 type parameters — one per rolling window duration.
//!
//! Foundation for tx-derived rolling window types (1h, 24h — actual time-based).
use brk_traversable::Traversable;
#[derive(Clone, Traversable)]
pub struct BlockWindows<A, B = A> {
#[traversable(rename = "1h")]
pub _1h: A,
#[traversable(rename = "24h")]
pub _24h: B,
}