pub enum RunnableDefinition {
Pipe {
a: Box<RunnableDefinition>,
b: Box<RunnableDefinition>,
},
Each {
inner: Box<RunnableDefinition>,
},
Passthrough,
Lambda {
name: String,
},
Opaque {
name: String,
params: Value,
},
}Expand description
Serializable description of a runnable’s shape.
Variants§
Pipe
Sequential a.pipe(b).
Fields
§
a: Box<RunnableDefinition>Left-side definition.
§
b: Box<RunnableDefinition>Right-side definition.
Each
Element-wise wrapper.
Fields
§
inner: Box<RunnableDefinition>Inner definition.
Passthrough
Identity runnable.
Lambda
Named lambda — the caller’s Loader must register a factory
under name.
Opaque
Free-form opaque definition. Runnables that can’t fully describe
themselves emit this; the caller must know how to rebuild from
name + params.
Trait Implementations§
Source§impl Clone for RunnableDefinition
impl Clone for RunnableDefinition
Source§fn clone(&self) -> RunnableDefinition
fn clone(&self) -> RunnableDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RunnableDefinition
impl Debug for RunnableDefinition
Source§impl<'de> Deserialize<'de> for RunnableDefinition
impl<'de> Deserialize<'de> for RunnableDefinition
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
Auto Trait Implementations§
impl Freeze for RunnableDefinition
impl RefUnwindSafe for RunnableDefinition
impl Send for RunnableDefinition
impl Sync for RunnableDefinition
impl Unpin for RunnableDefinition
impl UnsafeUnpin for RunnableDefinition
impl UnwindSafe for RunnableDefinition
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