pub struct NodeSchema {
pub node_type: String,
pub params: HashMap<String, ParamSchema>,
pub num_inputs: usize,
pub num_outputs: usize,
}Expand description
Node schema definition.
Fields§
§node_type: StringNode type name.
params: HashMap<String, ParamSchema>Parameter schemas.
num_inputs: usizeNumber of inputs.
num_outputs: usizeNumber of outputs.
Implementations§
Trait Implementations§
Source§impl Clone for NodeSchema
impl Clone for NodeSchema
Source§fn clone(&self) -> NodeSchema
fn clone(&self) -> NodeSchema
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 NodeSchema
impl Debug for NodeSchema
Source§impl<'de> Deserialize<'de> for NodeSchema
impl<'de> Deserialize<'de> for NodeSchema
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 NodeSchema
impl RefUnwindSafe for NodeSchema
impl Send for NodeSchema
impl Sync for NodeSchema
impl Unpin for NodeSchema
impl UnsafeUnpin for NodeSchema
impl UnwindSafe for NodeSchema
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> 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