#[repr(i16)]pub enum ModuleKind {
Show 14 variants
Cover = 0,
Flashcards = 1,
Matching = 2,
Memory = 3,
Poster = 4,
TappingBoard = 5,
Tracing = 6,
Video = 7,
CardQuiz = 9,
DragDrop = 10,
Legacy = 11,
ResourceCover = 12,
FindAnswer = 13,
Embed = 14,
}
Expand description
Represents the various kinds of data a module can represent.
Variants§
Cover = 0
This is a sort of special module, every jig has one and it can’t be deleted TODO: is that so?
Flashcards = 1
Flashcards
Matching = 2
Matching
Memory = 3
Memory Game
Poster = 4
Talking Poster
TappingBoard = 5
Listen & Learn
Tracing = 6
Tracing
Video = 7
Video
CardQuiz = 9
Deprecated, next new module should use this slot Quiz Game
DragDrop = 10
Drag & Drop
Legacy = 11
Legacy
ResourceCover = 12
ResourceCover user for resources and playlist cover
FindAnswer = 13
Answer This (Previously “Find the Answer”)
Embed = 14
Embed
Implementations§
Source§impl ModuleKind
impl ModuleKind
Sourcepub fn display_name(self) -> &'static str
pub fn display_name(self) -> &'static str
display name for each module kind
Sourcepub fn autogenerated(&self) -> bool
pub fn autogenerated(&self) -> bool
Whether this ModuleKind has auto-generated content
Sourcepub fn has_scoring(&self) -> bool
pub fn has_scoring(&self) -> bool
Whether this ModuleKind has scoring
Trait Implementations§
Source§impl Clone for ModuleKind
impl Clone for ModuleKind
Source§fn clone(&self) -> ModuleKind
fn clone(&self) -> ModuleKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModuleKind
impl Debug for ModuleKind
Source§impl<'de> Deserialize<'de> for ModuleKind
impl<'de> Deserialize<'de> for ModuleKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for ModuleKind
impl FromStr for ModuleKind
Source§impl PartialEq for ModuleKind
impl PartialEq for ModuleKind
Source§impl Serialize for ModuleKind
impl Serialize for ModuleKind
impl Copy for ModuleKind
impl Eq for ModuleKind
impl StructuralPartialEq for ModuleKind
Auto Trait Implementations§
impl Freeze for ModuleKind
impl RefUnwindSafe for ModuleKind
impl Send for ModuleKind
impl Sync for ModuleKind
impl Unpin for ModuleKind
impl UnwindSafe for ModuleKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more