[][src]Struct gazpatcho::config::NodeTemplate

pub struct NodeTemplate {
    pub label: String,
    pub class: String,
    pub pins: Vec<Pin>,
    pub widgets: Vec<Widget>,
}

The structure specifying format of a node.

This includes node's appearance, all input and output pins that are to be connected through patches, and various widgets that can be used to record per-node values.

See the module documentation to see an example of a fully defined NodeTemplate inside a config.

Fields

label: String

Label showing on top of each node.

class: String

Class serves as an identificator marking all node instances created from the given template.

pins: Vec<Pin>

Input and output Pins serve as contact points for inter-node patches.

widgets: Vec<Widget>

Widgets can be manipulated by users to select or record values.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.