pub struct IncomingAdjacencyEntry {
pub label: String,
pub src: NodeId,
pub edge: Cid,
}Expand description
One incoming-edge record inside an IncomingAdjacencyBucket.
Unlike AdjacencyEntry (which can omit src because it lives in
the outer Prolly key), this entry carries the source NodeId
explicitly: the outer key is dst, so without src here callers
would have to decode the Edge object just to answer “who pointed
at me?”.
Fields§
§label: StringEdge label (etype).
src: NodeIdSource NodeId - the node that owns the out-edge pointing at
this bucket’s dst.
edge: CidContent-addressed edge CID. Resolving it gives the full Edge
object (with edge_id, props, etc.).
Trait Implementations§
Source§impl Clone for IncomingAdjacencyEntry
impl Clone for IncomingAdjacencyEntry
Source§fn clone(&self) -> IncomingAdjacencyEntry
fn clone(&self) -> IncomingAdjacencyEntry
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 IncomingAdjacencyEntry
impl Debug for IncomingAdjacencyEntry
Source§impl<'de> Deserialize<'de> for IncomingAdjacencyEntry
impl<'de> Deserialize<'de> for IncomingAdjacencyEntry
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 IncomingAdjacencyEntry
impl PartialEq for IncomingAdjacencyEntry
Source§impl Serialize for IncomingAdjacencyEntry
impl Serialize for IncomingAdjacencyEntry
impl Eq for IncomingAdjacencyEntry
impl StructuralPartialEq for IncomingAdjacencyEntry
Auto Trait Implementations§
impl Freeze for IncomingAdjacencyEntry
impl RefUnwindSafe for IncomingAdjacencyEntry
impl Send for IncomingAdjacencyEntry
impl Sync for IncomingAdjacencyEntry
impl Unpin for IncomingAdjacencyEntry
impl UnsafeUnpin for IncomingAdjacencyEntry
impl UnwindSafe for IncomingAdjacencyEntry
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