Skip to main content

linesmith_core/segments/rate_limit/
mod.rs

1//! Rate-limit segment family. Renders the 5-hour and 7-day usage
2//! windows from `ctx.usage()` per `docs/specs/rate-limit-segments.md`.
3//!
4//! See `format` for the shared render helpers, and the per-window
5//! files (`five_hour`, `five_hour_reset`, `seven_day`, `seven_day_reset`)
6//! for the four `Segment` impls. The dispatcher in `segments::mod.rs`
7//! wires the user-facing `[segments.rate_limit_*]` config keys to the
8//! segment structs re-exported below.
9
10pub mod config;
11pub mod five_hour;
12pub mod format;
13pub mod seven_day;
14pub mod window;
15
16pub use five_hour::{RateLimit5hResetSegment, RateLimit5hSegment};
17pub use seven_day::{RateLimit7dResetSegment, RateLimit7dSegment};