bitpill 0.3.5

A personal medication management TUI application built in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
use chrono::NaiveDateTime;

/// Abstracts the system clock so services can be tested with a controlled time.
///
/// Inject via `Arc<dyn ClockPort>` — never call `chrono::Local::now()` directly
/// inside application services.
pub trait ClockPort: Send + Sync {
    /// Returns the current local datetime.
    fn now(&self) -> NaiveDateTime;
}