pub struct TreeReference {
pub root: ID,
pub tips: Vec<ID>,
}Expand description
Reference to a Merkle-DAG tree (for delegated trees) TODO: May standardize on this format across the codebase instead of just for delegation
Fields§
§root: IDRoot entry ID of the referenced tree
tips: Vec<ID>Current tip entry IDs of the referenced tree
Trait Implementations§
Source§impl Clone for TreeReference
impl Clone for TreeReference
Source§fn clone(&self) -> TreeReference
fn clone(&self) -> TreeReference
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 TreeReference
impl Debug for TreeReference
Source§impl Default for TreeReference
impl Default for TreeReference
Source§fn default() -> TreeReference
fn default() -> TreeReference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TreeReference
impl<'de> Deserialize<'de> for TreeReference
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 From<TreeReference> for Doc
impl From<TreeReference> for Doc
Source§fn from(tree_ref: TreeReference) -> Doc
fn from(tree_ref: TreeReference) -> Doc
Converts to this type from the input type.
Source§impl From<TreeReference> for Value
impl From<TreeReference> for Value
Source§fn from(tree_ref: TreeReference) -> Value
fn from(tree_ref: TreeReference) -> Value
Converts to this type from the input type.
Source§impl PartialEq for TreeReference
impl PartialEq for TreeReference
Source§impl Serialize for TreeReference
impl Serialize for TreeReference
Source§impl TryFrom<&Doc> for TreeReference
impl TryFrom<&Doc> for TreeReference
impl Eq for TreeReference
impl StructuralPartialEq for TreeReference
Auto Trait Implementations§
impl Freeze for TreeReference
impl RefUnwindSafe for TreeReference
impl Send for TreeReference
impl Sync for TreeReference
impl Unpin for TreeReference
impl UnwindSafe for TreeReference
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more