pub enum ModuleAssistType {
Instructions,
Feedback,
InActivity,
}
Expand description
Type of assistance to be shown. This is only set during play and should never be persisted to the database.
Variants§
Instructions
Instructions to be shown when an activity starts
Feedback
Feedback to be shown at the end of an activity
InActivity
Replayable activity-specific assistance.
Implementations§
Source§impl ModuleAssistType
impl ModuleAssistType
Sourcepub fn is_instructions(&self) -> bool
pub fn is_instructions(&self) -> bool
Whether this variant is Instructions
Sourcepub fn is_feedback(&self) -> bool
pub fn is_feedback(&self) -> bool
Whether this variant is Feedback
Sourcepub fn is_in_activity(&self) -> bool
pub fn is_in_activity(&self) -> bool
Whether this variant is InActivity
Trait Implementations§
Source§impl Clone for ModuleAssistType
impl Clone for ModuleAssistType
Source§fn clone(&self) -> ModuleAssistType
fn clone(&self) -> ModuleAssistType
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 ModuleAssistType
impl Debug for ModuleAssistType
Source§impl<'de> Deserialize<'de> for ModuleAssistType
impl<'de> Deserialize<'de> for ModuleAssistType
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
Auto Trait Implementations§
impl Freeze for ModuleAssistType
impl RefUnwindSafe for ModuleAssistType
impl Send for ModuleAssistType
impl Sync for ModuleAssistType
impl Unpin for ModuleAssistType
impl UnwindSafe for ModuleAssistType
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