Struct akd_core::types::AzksElement
source · pub struct AzksElement {
pub label: NodeLabel,
pub value: AzksValue,
}
Expand description
Represents an element to be inserted into the AZKS. This is a pair consisting of a label (NodeLabel) and a value. The purpose of the directory publish is to convert an insertion set of (AkdLabel, AkdValue) tuples into a set of AzksElements, which are then inserted into the AZKS.
Fields§
§label: NodeLabel
The label of the node
value: AzksValue
The associated hash of the node
Trait Implementations§
source§impl Clone for AzksElement
impl Clone for AzksElement
source§fn clone(&self) -> AzksElement
fn clone(&self) -> AzksElement
Returns a copy 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 AzksElement
impl Debug for AzksElement
source§impl Ord for AzksElement
impl Ord for AzksElement
source§impl PartialEq<AzksElement> for AzksElement
impl PartialEq<AzksElement> for AzksElement
source§fn eq(&self, other: &AzksElement) -> bool
fn eq(&self, other: &AzksElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AzksElement> for AzksElement
impl PartialOrd<AzksElement> for AzksElement
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more