pub struct Operation {
pub name: String,
pub summary: String,
pub inputs: Vec<InputPort>,
pub outputs: Vec<OutputPort>,
pub recipe_schema: Value,
pub resources: Resources,
}Expand description
One thing a tool does (convert, sort, segment, extract).
Fields§
§name: String§summary: StringOne line, for people choosing it.
inputs: Vec<InputPort>§outputs: Vec<OutputPort>§recipe_schema: ValueThe JSON Schema of the operation’s recipe (the tool’s session or pipeline spec): the orchestrator checks a recipe against it before anything runs.
resources: ResourcesImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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 StructuralPartialEq for Operation
Auto Trait Implementations§
impl Forget for Operation
impl Freeze for Operationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<InputPort>: Freeze,
PhantomData<OutputPort>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<InputPort>: UnsafeUnpin,
PhantomData<OutputPort>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for Operation
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