pub struct PhantomConnection {
pub target: String,
pub style: Option<ConnectionStyle>,
pub label: Option<String>,
}Expand description
Connection between phantoms in the same cluster.
Fields§
§target: StringID of the target phantom (must be in the same cluster).
style: Option<ConnectionStyle>Visual style of the connection line.
label: Option<String>Optional label for the connection.
Implementations§
Source§impl PhantomConnection
impl PhantomConnection
Sourcepub fn with_style(self, style: ConnectionStyle) -> Self
pub fn with_style(self, style: ConnectionStyle) -> Self
Set the connection style.
Sourcepub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
Set a label for the connection.
Trait Implementations§
Source§impl Clone for PhantomConnection
impl Clone for PhantomConnection
Source§fn clone(&self) -> PhantomConnection
fn clone(&self) -> PhantomConnection
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 moreSource§impl Debug for PhantomConnection
impl Debug for PhantomConnection
Source§impl<'de> Deserialize<'de> for PhantomConnection
impl<'de> Deserialize<'de> for PhantomConnection
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 PhantomConnection
impl PartialEq for PhantomConnection
Source§impl Serialize for PhantomConnection
impl Serialize for PhantomConnection
impl Eq for PhantomConnection
impl StructuralPartialEq for PhantomConnection
Auto Trait Implementations§
impl Freeze for PhantomConnection
impl RefUnwindSafe for PhantomConnection
impl Send for PhantomConnection
impl Sync for PhantomConnection
impl Unpin for PhantomConnection
impl UnsafeUnpin for PhantomConnection
impl UnwindSafe for PhantomConnection
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.