pub struct NodeKitFixtureNode {
pub alias: String,
pub kind: NodeKindKey,
pub pos: CanvasPoint,
pub data: Option<Value>,
}Expand description
A node instance inside a kit fixture.
Fields§
§alias: String§kind: NodeKindKey§pos: CanvasPoint§data: Option<Value>Implementations§
Source§impl NodeKitFixtureNode
impl NodeKitFixtureNode
pub fn new( alias: impl Into<String>, kind: impl Into<NodeKindKey>, pos: CanvasPoint, ) -> Self
pub fn with_data(self, data: Value) -> Self
Trait Implementations§
Source§impl Clone for NodeKitFixtureNode
impl Clone for NodeKitFixtureNode
Source§fn clone(&self) -> NodeKitFixtureNode
fn clone(&self) -> NodeKitFixtureNode
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 NodeKitFixtureNode
impl Debug for NodeKitFixtureNode
Source§impl<'de> Deserialize<'de> for NodeKitFixtureNode
impl<'de> Deserialize<'de> for NodeKitFixtureNode
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 for NodeKitFixtureNode
impl PartialEq for NodeKitFixtureNode
Source§fn eq(&self, other: &NodeKitFixtureNode) -> bool
fn eq(&self, other: &NodeKitFixtureNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeKitFixtureNode
impl Serialize for NodeKitFixtureNode
impl StructuralPartialEq for NodeKitFixtureNode
Auto Trait Implementations§
impl Freeze for NodeKitFixtureNode
impl RefUnwindSafe for NodeKitFixtureNode
impl Send for NodeKitFixtureNode
impl Sync for NodeKitFixtureNode
impl Unpin for NodeKitFixtureNode
impl UnsafeUnpin for NodeKitFixtureNode
impl UnwindSafe for NodeKitFixtureNode
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