pub struct Node {
pub op: String,
pub params: BTreeMap<String, ParamValue>,
pub enabled: bool,
pub label: Option<String>,
pub at: Option<[f32; 2]>,
}Expand description
One op in the pipeline.
Fields§
§op: StringThe operation’s id in the app’s catalog.
params: BTreeMap<String, ParamValue>Its parameters; what is left out takes the default.
enabled: boolOff: it passes its input on (Plan::forwards).
label: Option<String>A name for people, in place of the operation’s title.
at: Option<[f32; 2]>Where an editor draws it (canvas units); the run ignores it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 JsonSchema for Node
impl JsonSchema for Node
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Node
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Nodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, ParamValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ParamValue)>>: Freeze,
impl Move for Node
impl RefUnwindSafe for Node
impl Send for Nodewhere
RawVecInner: Send,
NodeRef<Owned, String, ParamValue, LeafOrInternal>: Send,
BoxRaw<(String, ParamValue)>: Send,
impl Sync for Nodewhere
RawVecInner: Sync,
NodeRef<Owned, String, ParamValue, LeafOrInternal>: Sync,
BoxRaw<(String, ParamValue)>: Sync,
impl Unpin for Node
impl UnsafeUnpin for Nodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, ParamValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ParamValue)>>: UnsafeUnpin,
impl UnwindSafe for Node
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