bitpill 0.3.5

A personal medication management TUI application built in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::application::{
    dtos::{requests::ScheduleDoseRequest, responses::ScheduleDoseResponse},
    errors::ApplicationError,
};

/// A scheduling tick port. The service uses its injected [`ClockPort`] to determine
/// the current time.
///
/// [`ClockPort`]: crate::application::ports::clock_port::ClockPort
pub trait ScheduleDosePort: Send + Sync {
    fn execute(
        &self,
        request: ScheduleDoseRequest,
    ) -> Result<ScheduleDoseResponse, ApplicationError>;
}