pub struct NodeLayout {
    pub label: String,
    pub uuid: Uuid,
}Expand description
Represents a node
Fields§
§label: String§uuid: UuidImplementations§
Source§impl NodeLayout
 
impl NodeLayout
Sourcepub fn new(label: impl Into<String>) -> NodeLayout
 
pub fn new(label: impl Into<String>) -> NodeLayout
Creates a new node layout with a unique UUID v4
Sourcepub fn input(&self, input: impl Into<String>) -> InputLayout
 
pub fn input(&self, input: impl Into<String>) -> InputLayout
Creates a new input layout with a unique UUID v3 based on the node’s UUID and input label
Sourcepub fn output(&self, output: impl Into<String>) -> OutputLayout
 
pub fn output(&self, output: impl Into<String>) -> OutputLayout
Creates a new output layout with a unique UUID v3 based on the node’s UUID and output label
Sourcepub fn query(&self, query: impl Into<String>) -> QueryLayout
 
pub fn query(&self, query: impl Into<String>) -> QueryLayout
Creates a new query layout with a unique UUID v3 based on the node’s UUID and query label
Sourcepub fn queryable(&self, queryable: impl Into<String>) -> QueryableLayout
 
pub fn queryable(&self, queryable: impl Into<String>) -> QueryableLayout
Creates a new queryable layout with a unique UUID v3 based on the node’s UUID and queryable label
Trait Implementations§
Source§impl Clone for NodeLayout
 
impl Clone for NodeLayout
Source§fn clone(&self) -> NodeLayout
 
fn clone(&self) -> NodeLayout
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 NodeLayout
 
impl Debug for NodeLayout
Source§impl Hash for NodeLayout
 
impl Hash for NodeLayout
Source§impl PartialEq for NodeLayout
 
impl PartialEq for NodeLayout
impl Eq for NodeLayout
impl StructuralPartialEq for NodeLayout
Auto Trait Implementations§
impl Freeze for NodeLayout
impl RefUnwindSafe for NodeLayout
impl Send for NodeLayout
impl Sync for NodeLayout
impl Unpin for NodeLayout
impl UnwindSafe for NodeLayout
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<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.