Struct scratch_file::Block [−][src]
pub struct Block { pub opcode: String, pub next: Option<BlockID>, pub inputs: HashMap<String, Value>, pub fields: HashMap<String, Vec<Option<String>>>, pub top_level: bool, }
Blocks are the rectangle and oval code blocks.
Fields
opcode: String
next: Option<BlockID>
Block attached below this block
inputs: HashMap<String, Value>
Inputs are the oval holes in blocks where you can drop oval blocks into
fields: HashMap<String, Vec<Option<String>>>
Fields are the drop downs in blocks and therefore can only take constant strings
top_level: bool
Top most block in a stack of connected blocks
Trait Implementations
impl<'de> Deserialize<'de> for Block
[src]
impl<'de> Deserialize<'de> for Block
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Block
impl RefUnwindSafe for Block
impl UnwindSafe for Block
impl UnwindSafe for Block
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]