Struct akd::AzksElement
source · 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 From<&AzksElement> for AzksElement
impl From<&AzksElement> for AzksElement
source§fn from(input: &AzksElement) -> AzksElement
fn from(input: &AzksElement) -> AzksElement
Converts to this type from the input type.
source§impl Ord for AzksElement
impl Ord for AzksElement
source§fn cmp(&self, other: &AzksElement) -> Ordering
fn cmp(&self, other: &AzksElement) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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
source§fn partial_cmp(&self, other: &AzksElement) -> Option<Ordering>
fn partial_cmp(&self, other: &AzksElement) -> Option<Ordering>
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 moresource§impl SizeOf for AzksElement
impl SizeOf for AzksElement
source§impl TryFrom<&AzksElement> for AzksElement
impl TryFrom<&AzksElement> for AzksElement
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
input: &AzksElement
) -> Result<AzksElement, <AzksElement as TryFrom<&AzksElement>>::Error>
fn try_from(
input: &AzksElement
) -> Result<AzksElement, <AzksElement as TryFrom<&AzksElement>>::Error>
Performs the conversion.