Trait ssr_core::task::Task

source ·
pub trait Task<'a>: Serialize + Deserialize<'a> {
    // Required methods
    fn new(
        description: String,
        correct_answers: impl IntoIterator<Item = String>,
        explanation: Option<String>,
    ) -> Self;
    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§

source

fn new( description: String, correct_answers: impl IntoIterator<Item = String>, explanation: Option<String>, ) -> Self

source

fn get_desctiption(&self) -> &str

source

fn until_next_repetition(&self) -> Duration

source

fn complete( &mut self, interaction: impl UserInteraction, ) -> Feedback<'_, impl Iterator<Item = &String>>

Object Safety§

This trait is not object safe.

Implementors§