pub struct NodeKitFixtureEdge {
pub from: String,
pub from_port: Option<String>,
pub to: String,
pub to_port: Option<String>,
pub kind: EdgeKind,
pub data: Option<Value>,
pub view: EdgeViewDescriptor,
}Expand description
An edge instance inside a kit fixture.
Fields§
§from: String§from_port: Option<String>§to: String§to_port: Option<String>§kind: EdgeKind§data: Option<Value>§view: EdgeViewDescriptorImplementations§
Source§impl NodeKitFixtureEdge
impl NodeKitFixtureEdge
pub fn new( from: impl Into<String>, to: impl Into<String>, kind: EdgeKind, ) -> Self
pub fn with_from_port(self, from_port: impl Into<String>) -> Self
pub fn with_to_port(self, to_port: impl Into<String>) -> Self
pub fn with_data(self, data: Value) -> Self
pub fn with_view(self, view: EdgeViewDescriptor) -> Self
Trait Implementations§
Source§impl Clone for NodeKitFixtureEdge
impl Clone for NodeKitFixtureEdge
Source§fn clone(&self) -> NodeKitFixtureEdge
fn clone(&self) -> NodeKitFixtureEdge
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 NodeKitFixtureEdge
impl Debug for NodeKitFixtureEdge
Source§impl<'de> Deserialize<'de> for NodeKitFixtureEdge
impl<'de> Deserialize<'de> for NodeKitFixtureEdge
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 NodeKitFixtureEdge
impl PartialEq for NodeKitFixtureEdge
Source§fn eq(&self, other: &NodeKitFixtureEdge) -> bool
fn eq(&self, other: &NodeKitFixtureEdge) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeKitFixtureEdge
impl Serialize for NodeKitFixtureEdge
impl StructuralPartialEq for NodeKitFixtureEdge
Auto Trait Implementations§
impl Freeze for NodeKitFixtureEdge
impl RefUnwindSafe for NodeKitFixtureEdge
impl Send for NodeKitFixtureEdge
impl Sync for NodeKitFixtureEdge
impl Unpin for NodeKitFixtureEdge
impl UnsafeUnpin for NodeKitFixtureEdge
impl UnwindSafe for NodeKitFixtureEdge
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