pub struct JigPlaySessionDragDrop {
pub stable_module_id: StableModuleId,
pub items: HashMap<usize, JigPlaySessionDragDropItem>,
}
Expand description
Drag and drop module
Fields§
§stable_module_id: StableModuleId
related module id
items: HashMap<usize, JigPlaySessionDragDropItem>
list of rounds for this module. key is index in module.items. HashMap instead of Vec because not all items in modules.items are interactive.
Implementations§
Source§impl JigPlaySessionDragDrop
impl JigPlaySessionDragDrop
Sourcepub fn new(stable_module_id: StableModuleId) -> Self
pub fn new(stable_module_id: StableModuleId) -> Self
create new from module id
Trait Implementations§
Source§impl Clone for JigPlaySessionDragDrop
impl Clone for JigPlaySessionDragDrop
Source§fn clone(&self) -> JigPlaySessionDragDrop
fn clone(&self) -> JigPlaySessionDragDrop
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 JigPlaySessionDragDrop
impl Debug for JigPlaySessionDragDrop
Source§impl<'de> Deserialize<'de> for JigPlaySessionDragDrop
impl<'de> Deserialize<'de> for JigPlaySessionDragDrop
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 JigPlaySessionModuleGetPointsEarned for JigPlaySessionDragDrop
impl JigPlaySessionModuleGetPointsEarned for JigPlaySessionDragDrop
Source§fn get_points_earned(&self) -> PointsEarned
fn get_points_earned(&self) -> PointsEarned
get points earned method
Auto Trait Implementations§
impl Freeze for JigPlaySessionDragDrop
impl RefUnwindSafe for JigPlaySessionDragDrop
impl Send for JigPlaySessionDragDrop
impl Sync for JigPlaySessionDragDrop
impl Unpin for JigPlaySessionDragDrop
impl UnwindSafe for JigPlaySessionDragDrop
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