pub struct AdjacencyEntry {
pub label: String,
pub edge: Cid,
}Expand description
One outgoing-edge record inside an AdjacencyBucket.
The bucket is keyed by src NodeId in the outer Prolly tree, so
the source is known from context; only the edge label and edge CID
live in each entry. The CID resolves to an Edge object, from
which dst and edge_id are recovered.
Fields§
§label: StringEdge label (etype).
edge: CidContent-addressed edge CID.
Trait Implementations§
Source§impl Clone for AdjacencyEntry
impl Clone for AdjacencyEntry
Source§fn clone(&self) -> AdjacencyEntry
fn clone(&self) -> AdjacencyEntry
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 AdjacencyEntry
impl Debug for AdjacencyEntry
Source§impl<'de> Deserialize<'de> for AdjacencyEntry
impl<'de> Deserialize<'de> for AdjacencyEntry
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 AdjacencyEntry
impl PartialEq for AdjacencyEntry
Source§impl Serialize for AdjacencyEntry
impl Serialize for AdjacencyEntry
impl Eq for AdjacencyEntry
impl StructuralPartialEq for AdjacencyEntry
Auto Trait Implementations§
impl Freeze for AdjacencyEntry
impl RefUnwindSafe for AdjacencyEntry
impl Send for AdjacencyEntry
impl Sync for AdjacencyEntry
impl Unpin for AdjacencyEntry
impl UnsafeUnpin for AdjacencyEntry
impl UnwindSafe for AdjacencyEntry
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