pub struct GhostNode {
pub node_id: NodeId,
pub shard_id: ShardId,
pub label: String,
pub full_data: Option<NodeData>,
}Expand description
A ghost node - minimal reference to a node on another shard.
Ghost nodes are placeholders for nodes that exist on remote shards. They enable local graph traversal to continue even when edges cross shard boundaries. The full data can be fetched lazily when needed.
Fields§
§node_id: NodeIdThe actual node ID (same as on the owning shard).
shard_id: ShardIdThe shard that owns this node.
label: StringThe node’s label (cached for display/search).
full_data: Option<NodeData>Full data fetched lazily when needed for operations.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GhostNode
impl<'de> Deserialize<'de> for GhostNode
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
Auto Trait Implementations§
impl Freeze for GhostNode
impl RefUnwindSafe for GhostNode
impl Send for GhostNode
impl Sync for GhostNode
impl Unpin for GhostNode
impl UnsafeUnpin for GhostNode
impl UnwindSafe for GhostNode
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