pub enum OpSource {
Builtin,
Script {
path: PathBuf,
language: Language,
hash: String,
},
Tool {
tool: String,
operation: String,
},
Recipe {
hash: String,
},
}Expand description
Where an op’s code is.
Variants§
Builtin
The app’s own Rust code.
Script
A script file; hash is its content’s SHA-256 when it was read.
Fields
Tool
An operation of a tool program (run out of process, on whole results).
Recipe
A recipe: a pipeline saved as an op; hash is the pipeline’s content hash, which includes
its scripts’ hashes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpSource
impl<'de> Deserialize<'de> for OpSource
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 Eq for OpSource
Source§impl JsonSchema for OpSource
impl JsonSchema for OpSource
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 OpSource
Auto Trait Implementations§
impl Forget for OpSource
impl Freeze for OpSource
impl Move for OpSource
impl RefUnwindSafe for OpSource
impl Send for OpSourcewhere
RawVecInner: Send,
impl Sync for OpSourcewhere
RawVecInner: Sync,
impl Unpin for OpSource
impl UnsafeUnpin for OpSource
impl UnwindSafe for OpSourcewhere
RawVecInner: 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