#[non_exhaustive]pub struct Node {
pub data: Option<Value>,
pub desc: Option<String>,
pub name: Option<String>,
pub type: Option<String>,
pub uid: Option<String>,
}Expand description
Node
Represents a node or a vertex in a graph structure.
[] Category: | Name: node
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 node stored as key-value pairs. Can include custom properties specific to the node.
optional
desc: Option<String>Description
A human-readable description of the node’s purpose or meaning in the graph.
optional
name: Option<String>Name
A human-readable name or label for the node. Should be descriptive and unique within the graph context.
recommended
type: Option<String>Type
Categorizes the node into a specific class or type. Useful for grouping and filtering nodes.
optional
uid: Option<String>Unique ID
A unique string or numeric identifier that distinguishes this node from all others in the graph. Must be unique across all nodes.
required
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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