pub struct ModuleData {
pub game_id: String,
pub slide_id: String,
}
Expand description
The body for Legacy
modules.
This just points to the folder where legacy slides are loaded
Fields§
§game_id: String
base id for all file loading
slide_id: String
base id for all file loading
Trait Implementations§
Source§impl BodyConvert for ModuleData
impl BodyConvert for ModuleData
Source§fn convertable_list() -> Vec<ModuleKind>
fn convertable_list() -> Vec<ModuleKind>
Get a list of valid conversion targets
Source§fn convert_to_memory(&self) -> Result<ModuleData, &'static str>
fn convert_to_memory(&self) -> Result<ModuleData, &'static str>
Memory game
Source§fn convert_to_matching(&self) -> Result<ModuleData, &'static str>
fn convert_to_matching(&self) -> Result<ModuleData, &'static str>
Matching
Source§fn convert_to_flashcards(&self) -> Result<ModuleData, &'static str>
fn convert_to_flashcards(&self) -> Result<ModuleData, &'static str>
Flashcards
Source§fn convert_to_card_quiz(&self) -> Result<ModuleData, &'static str>
fn convert_to_card_quiz(&self) -> Result<ModuleData, &'static str>
Quiz game
Source§fn convert_to_poster(&self) -> Result<ModuleData, &'static str>
fn convert_to_poster(&self) -> Result<ModuleData, &'static str>
Talking Poster
Source§fn convert_to_tapping_board(&self) -> Result<ModuleData, &'static str>
fn convert_to_tapping_board(&self) -> Result<ModuleData, &'static str>
Listen & Learn
Source§fn convert_to_drag_drop(&self) -> Result<ModuleData, &'static str>
fn convert_to_drag_drop(&self) -> Result<ModuleData, &'static str>
Drag & Drop
Source§fn convert_to_cover(&self) -> Result<ModuleData, &'static str>
fn convert_to_cover(&self) -> Result<ModuleData, &'static str>
Cover
Source§fn convert_to_resource_cover(&self) -> Result<ModuleData, &'static str>
fn convert_to_resource_cover(&self) -> Result<ModuleData, &'static str>
Resource Cover
Source§fn convert_to_find_answer(&self) -> Result<ModuleData, &'static str>
fn convert_to_find_answer(&self) -> Result<ModuleData, &'static str>
Resource Cover
Source§fn convert_to_video(&self) -> Result<ModuleData, &'static str>
fn convert_to_video(&self) -> Result<ModuleData, &'static str>
Video
Source§fn convert_to_embed(&self) -> Result<ModuleData, &'static str>
fn convert_to_embed(&self) -> Result<ModuleData, &'static str>
Embed
Source§fn convert_to_legacy(&self) -> Result<ModuleData, &'static str>
fn convert_to_legacy(&self) -> Result<ModuleData, &'static str>
Legacy
Source§impl BodyExt<(), ()> for ModuleData
impl BodyExt<(), ()> for ModuleData
Source§fn is_complete(&self) -> bool
fn is_complete(&self) -> bool
is complete
Source§fn has_preload() -> bool
fn has_preload() -> bool
should wait for manual phase change to Init
Source§fn kind() -> ModuleKind
fn kind() -> ModuleKind
get the kind from the type itself
Source§fn new_with_mode_and_theme(_mode: (), _theme_id: ThemeId) -> Self
fn new_with_mode_and_theme(_mode: (), _theme_id: ThemeId) -> Self
given a Mode, get a new Self
will usually populate an inner .content
Source§fn requires_choose_mode(&self) -> bool
fn requires_choose_mode(&self) -> bool
requires an additional step of choosing the mode
Source§fn set_editor_state_step(&mut self, _step: ())
fn set_editor_state_step(&mut self, _step: ())
Set editor state step
Source§fn set_editor_state_steps_completed(&mut self, _steps_completed: HashSet<()>)
fn set_editor_state_steps_completed(&mut self, _steps_completed: HashSet<()>)
Set editor state steps completed
Source§fn get_editor_state_step(&self) -> Option<()>
fn get_editor_state_step(&self) -> Option<()>
Get editor state step
Source§fn get_editor_state_steps_completed(&self) -> Option<HashSet<()>>
fn get_editor_state_steps_completed(&self) -> Option<HashSet<()>>
Get editor state steps completed
Source§fn choose_mode_list() -> Vec<Mode>
fn choose_mode_list() -> Vec<Mode>
get choose mode list. By default it’s the full list
but that can be overridden to re-order or hide some modes
Source§fn insert_editor_state_step_completed(&mut self, step: Step)
fn insert_editor_state_step_completed(&mut self, step: Step)
Insert a completed step
Source§fn convert_to_body(&self, kind: ModuleKind) -> Result<Body, &'static str>
fn convert_to_body(&self, kind: ModuleKind) -> Result<Body, &'static str>
Convert this inner data to a Body wrapper of a specific kind
Source§impl Clone for ModuleData
impl Clone for ModuleData
Source§fn clone(&self) -> ModuleData
fn clone(&self) -> ModuleData
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 ModuleData
impl Debug for ModuleData
Source§impl Default for ModuleData
impl Default for ModuleData
Source§fn default() -> ModuleData
fn default() -> ModuleData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModuleData
impl<'de> Deserialize<'de> for ModuleData
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 Serialize for ModuleData
impl Serialize for ModuleData
Auto Trait Implementations§
impl Freeze for ModuleData
impl RefUnwindSafe for ModuleData
impl Send for ModuleData
impl Sync for ModuleData
impl Unpin for ModuleData
impl UnwindSafe for ModuleData
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