1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
use crate::space_repetition;
pub mod difficulty;
#[derive(Debug, Clone)]
pub struct Line {
pub part_1: Vec<String>,
pub part_2: Vec<String>,
}
pub struct DbEntry {
pub question: String,
pub responses: Vec<String>,
pub deleted: Option<u64>,
}
#[derive(Debug)]
pub struct Card {
pub question: String,
pub responses: Vec<String>,
pub state: space_repetition::State,
pub ready: u64,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Question {
pub question: String,
pub responses: Vec<String>,
}
|