#[non_exhaustive]pub struct Edge {
pub data: Option<Value>,
pub is_directed: Option<bool>,
pub name: Option<String>,
pub relation: Option<String>,
pub source: Option<String>,
pub target: Option<String>,
pub uid: Option<String>,
}Expand description
Edge
Represents a connection or relationship between two nodes in a graph.
[] Category: | Name: edge
Constraints:
- at_least_one:
[name,uid]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data: Option<Value>Data
Additional data about the edge such as weight, distance, or custom properties.
optional
is_directed: Option<bool>Directed
Indicates whether the edge is (true) or undirected (false).
optional
name: Option<String>Name
The human-readable name or label for the edge.
recommended
relation: Option<String>Relation
The type of relationship between nodes (e.g. is-attached-to , depends-on, etc).
recommended
source: Option<String>Source
The unique identifier of the node where the edge originates.
required
target: Option<String>Target
The unique identifier of the node where the edge terminates.
required
uid: Option<String>Unique ID
Unique identifier of the edge.
recommended
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
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
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
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