Struct wick_interface_types::OperationSignature
source · pub struct OperationSignature {
pub name: String,
pub inputs: Vec<Field>,
pub outputs: Vec<Field>,
}
Expand description
The signature of a Wick component, including its input and output types.
Fields§
§name: String
The name of the component.
inputs: Vec<Field>
The component’s inputs.
outputs: Vec<Field>
The component’s outputs.
Implementations§
source§impl OperationSignature
impl OperationSignature
sourcepub fn new<T: AsRef<str>>(name: T) -> Self
pub fn new<T: AsRef<str>>(name: T) -> Self
Create a new ComponentSignature with the passed name.
sourcepub fn add_input(self, name: impl AsRef<str>, ty: TypeSignature) -> Self
pub fn add_input(self, name: impl AsRef<str>, ty: TypeSignature) -> Self
Add an input port.
sourcepub fn add_output(self, name: impl AsRef<str>, ty: TypeSignature) -> Self
pub fn add_output(self, name: impl AsRef<str>, ty: TypeSignature) -> Self
Add an input port.
Trait Implementations§
source§impl Clone for OperationSignature
impl Clone for OperationSignature
source§fn clone(&self) -> OperationSignature
fn clone(&self) -> OperationSignature
Returns a copy 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 OperationSignature
impl Debug for OperationSignature
source§impl Default for OperationSignature
impl Default for OperationSignature
source§fn default() -> OperationSignature
fn default() -> OperationSignature
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OperationSignature
impl<'de> Deserialize<'de> for OperationSignature
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 PartialEq<OperationSignature> for OperationSignature
impl PartialEq<OperationSignature> for OperationSignature
source§impl Serialize for OperationSignature
impl Serialize for OperationSignature
impl Eq for OperationSignature
impl StructuralEq for OperationSignature
Auto Trait Implementations§
impl RefUnwindSafe for OperationSignature
impl Send for OperationSignature
impl Sync for OperationSignature
impl Unpin for OperationSignature
impl UnwindSafe for OperationSignature
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.