pub struct Content {
pub instructions: ModuleAssist,
pub theme: ThemeId,
pub backgrounds: Backgrounds,
pub items: Vec<Item>,
pub item_targets: Vec<TargetTransform>,
pub editor_state: EditorState,
pub mode: Mode,
pub target_areas: Vec<TargetArea>,
pub play_settings: PlaySettings,
pub feedback: ModuleAssist,
}
Expand description
The body for DragDrop
modules.
Fields§
§instructions: ModuleAssist
The instructions for the module.
theme: ThemeId
The module’s theme.
backgrounds: Backgrounds
Backgrounds
items: Vec<Item>
Items (wrapper around Sticker and metadata)
item_targets: Vec<TargetTransform>
List of targets for items
Each item can possibly have multiple targets
editor_state: EditorState
The editor state
mode: Mode
The mode
target_areas: Vec<TargetArea>
target areas
play_settings: PlaySettings
play settings
feedback: ModuleAssist
The feedback for the module.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Content
impl<'de> Deserialize<'de> for Content
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 Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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