pub enum BlockMutationEnum {
ProceduresPrototype {
proccode: String,
argumentids: Vec<Uid>,
argumentnames: Vec<Name>,
argumentdefaults: Vec<ValueWithBool>,
warp: Option<bool>,
},
ProceduresCall {
proccode: String,
argumentids: Vec<Uid>,
warp: Option<bool>,
},
ControlStop {
hasnext: bool,
},
}Expand description
Different mutation has different properties. This enum define them.
Variants§
ProceduresPrototype
opcode is "procedures_prototype" mutations have the following additional properties
Fields
§
proccode: StringThe name of the custom block, including inputs: %s for string/number inputs and %b for boolean inputs.
§
argumentids: Vec<Uid>An array of the ids of the arguments; these can also be found in the input property of the main block.
§
argumentdefaults: Vec<ValueWithBool>An array of the defaults of the arguments.
- String default is an empty string
- bool default is
false
ProceduresCall
opcode is "procedures_call" mutations have the following additional properties
Fields
§
proccode: StringThe name of the custom block, including inputs: %s for string/number inputs and %b for boolean inputs.
ControlStop
opcode is "control_stop" mutations have the following additional property
Trait Implementations§
Source§impl Clone for BlockMutationEnum
impl Clone for BlockMutationEnum
Source§fn clone(&self) -> BlockMutationEnum
fn clone(&self) -> BlockMutationEnum
Returns a duplicate 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 BlockMutationEnum
impl Debug for BlockMutationEnum
Source§impl<'de> Deserialize<'de> for BlockMutationEnum
impl<'de> Deserialize<'de> for BlockMutationEnum
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 PartialEq for BlockMutationEnum
impl PartialEq for BlockMutationEnum
Source§impl Serialize for BlockMutationEnum
impl Serialize for BlockMutationEnum
impl StructuralPartialEq for BlockMutationEnum
Auto Trait Implementations§
impl Freeze for BlockMutationEnum
impl RefUnwindSafe for BlockMutationEnum
impl Send for BlockMutationEnum
impl Sync for BlockMutationEnum
impl Unpin for BlockMutationEnum
impl UnwindSafe for BlockMutationEnum
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