pub struct BaseContent {
pub editor_state: EditorState,
pub instructions: ModuleAssist,
pub feedback: ModuleAssist,
pub mode: Mode,
pub pairs: Vec<CardPair>,
pub theme: ThemeId,
pub background: Option<Background>,
}
Expand description
The base content for card modules
Fields§
§editor_state: EditorState
The editor state
instructions: ModuleAssist
The instructions for the module.
feedback: ModuleAssist
The feedback for the module.
mode: Mode
The mode the module uses.
pairs: Vec<CardPair>
The pairs of cards that make up the module.
theme: ThemeId
The ID of the module’s theme.
background: Option<Background>
The optional background override
Implementations§
Trait Implementations§
Source§impl Clone for BaseContent
impl Clone for BaseContent
Source§fn clone(&self) -> BaseContent
fn clone(&self) -> BaseContent
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 BaseContent
impl Debug for BaseContent
Source§impl Default for BaseContent
impl Default for BaseContent
Source§fn default() -> BaseContent
fn default() -> BaseContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BaseContent
impl<'de> Deserialize<'de> for BaseContent
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 BaseContent
impl RefUnwindSafe for BaseContent
impl Send for BaseContent
impl Sync for BaseContent
impl Unpin for BaseContent
impl UnwindSafe for BaseContent
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