pub struct CompositeOperatorDescriptor {
pub id: NodeId,
pub inputs: Vec<CompositeInputDescriptor>,
pub outputs: Vec<CompositeOutputDescriptor>,
pub operators: Vec<NodeDescriptor>,
pub links: Vec<LinkDescriptor>,
pub configuration: Option<Configuration>,
}Expand description
Describes a composite operator.
Example:
id: AMagicAIBasedOperator
configuration:
parameter1: value1
parameter2: value2
operators: # Operators composing the flow
- id: ComposedAIDownsampling
descritptor: [file://|...]/some/path/to/its/descritptor/file.yaml
configuration:
paramter3: value3
- id: MagicAI
descriptor: [file://|...]/some/path/to/its/descritptor/file.yaml
- id: MagicPostProcessing
descriptor: [file://|...]/some/path/to/its/descritptor/file.yaml
links:
- from:
node : ComposedAIDownsampling
output : Data
to:
node : MagicAI
input : In
- from:
node : MagicAI
output : Out
to:
node : MagicPostProcessing
input : Data
inputs:
- node: ComposedAIDownsampling
input: Data
outputs:
- node: MagicPostProcessing
output: DataFields§
§id: NodeId§inputs: Vec<CompositeInputDescriptor>§outputs: Vec<CompositeOutputDescriptor>§operators: Vec<NodeDescriptor>§links: Vec<LinkDescriptor>§configuration: Option<Configuration>Implementations§
Source§impl CompositeOperatorDescriptor
impl CompositeOperatorDescriptor
Sourcepub fn from_yaml(data: &str) -> Result<Self>
pub fn from_yaml(data: &str) -> Result<Self>
Creates a new CompositeOperatorDescriptor from its YAML representation.
§Errors
A variant error is returned if deserialization fails.
Sourcepub fn from_json(data: &str) -> Result<Self>
pub fn from_json(data: &str) -> Result<Self>
Creates a new CompositeOperatorDescriptor from its JSON representation.
§Errors
A variant error is returned if deserialization fails.
Trait Implementations§
Source§impl Clone for CompositeOperatorDescriptor
impl Clone for CompositeOperatorDescriptor
Source§fn clone(&self) -> CompositeOperatorDescriptor
fn clone(&self) -> CompositeOperatorDescriptor
Returns a duplicate of the value. Read more
1.0.0 · 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 CompositeOperatorDescriptor
impl Debug for CompositeOperatorDescriptor
Source§impl<'de> Deserialize<'de> for CompositeOperatorDescriptor
impl<'de> Deserialize<'de> for CompositeOperatorDescriptor
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 CompositeOperatorDescriptor
impl RefUnwindSafe for CompositeOperatorDescriptor
impl Send for CompositeOperatorDescriptor
impl Sync for CompositeOperatorDescriptor
impl Unpin for CompositeOperatorDescriptor
impl UnwindSafe for CompositeOperatorDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more