pub struct Entry {
pub prefix_len: usize,
pub keysuffix: Vec<u8>,
pub value: Cid,
pub tree: Option<Cid>,
}
Expand description
TreeEntry object
Fields§
§prefix_len: usize
count of bytes shared with previous TreeEntry in this Node (if any)
keysuffix: Vec<u8>
remainder of key for this TreeEntry, after “prefixlen” have been removed
value: Cid
link to the record data (CBOR) for this entry
tree: Option<Cid>
link to a sub-tree Node at a lower level
the lower level must have keys sorting after this TreeEntry’s key (to the “right”), but before the next TreeEntry’s key in this Node (if any)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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 Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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