pub struct Step<O> {
pub id: String,
pub operation: O,
}Expand description
One step of a Program: an operation with its arguments, and the id
everything it creates is named after. Serializes as
{"id": "box", "operation": "extrude", "args": {...}}.
Fields§
§id: String§operation: OTrait Implementations§
Source§impl<'de, O> Deserialize<'de> for Step<O>where
O: Deserialize<'de>,
impl<'de, O> Deserialize<'de> for Step<O>where
O: Deserialize<'de>,
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
impl<O: PartialEq> StructuralPartialEq for Step<O>
Auto Trait Implementations§
impl<O> Freeze for Step<O>where
O: Freeze,
impl<O> RefUnwindSafe for Step<O>where
O: RefUnwindSafe,
impl<O> Send for Step<O>where
O: Send,
impl<O> Sync for Step<O>where
O: Sync,
impl<O> Unpin for Step<O>where
O: Unpin,
impl<O> UnsafeUnpin for Step<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for Step<O>where
O: UnwindSafe,
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