pub trait Task<'a>: Serialize + Deserialize<'a> {
// Required methods
fn get_desctiption(&self) -> &str;
fn until_next_repetition(&self) -> Duration;
fn complete(
&mut self,
interaction: impl UserInteraction,
) -> Feedback<impl Iterator<Item = String>>;
}
Required Methods§
fn get_desctiption(&self) -> &str
fn until_next_repetition(&self) -> Duration
fn complete( &mut self, interaction: impl UserInteraction, ) -> Feedback<impl Iterator<Item = String>>
Object Safety§
This trait is not object safe.