pub struct Card {
pub question: String,
pub answer: String,
pub seen_in_test: bool,
pub difficult: bool,
pub starred: bool,
pub method_data: Dynamic,
}
Expand description
A single key-value pair that represents an element in the set.
Fields§
§question: String
The prompt the user will be given for this card.
answer: String
The answer this card has (which will be shown to the user).
seen_in_test: bool
Whether or not this card has been seen yet in the active test.
difficult: bool
Whether or not this card has been marked as difficult. Difficult cards are intended to be identified during the learning process, and the marking of them as such should be automated.
starred: bool
Whether or not this card has been starred. Cards are automatically starred if a user gets them wrong in a test, and they will be unstarred if the user later gets them right in a test. This behaviour can be customised with flags.
method_data: Dynamic
Data about this card stored by the current method. This can be serialized and deserialized, but is completely arbitrary, and different cards may store completely different data here. This should be passed to and from method scripts with no intervention from Rust.