pub struct NodeSocket {
pub name: String,
pub socket_type: SocketType,
pub required: bool,
pub default: String,
}Expand description
Definition of one input or output socket on a node.
Fields§
§name: String§socket_type: SocketType§required: bool§default: StringDefault value string (used when disconnected and no constant set).
Implementations§
Source§impl NodeSocket
impl NodeSocket
pub fn required(name: &str, t: SocketType) -> Self
pub fn optional(name: &str, t: SocketType, default: &str) -> Self
Trait Implementations§
Source§impl Clone for NodeSocket
impl Clone for NodeSocket
Source§fn clone(&self) -> NodeSocket
fn clone(&self) -> NodeSocket
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 moreAuto Trait Implementations§
impl Freeze for NodeSocket
impl RefUnwindSafe for NodeSocket
impl Send for NodeSocket
impl Sync for NodeSocket
impl Unpin for NodeSocket
impl UnsafeUnpin for NodeSocket
impl UnwindSafe for NodeSocket
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