Struct akd::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 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.
impl Copy for AzksElement
impl Eq for AzksElement
impl StructuralEq for AzksElement
impl StructuralPartialEq for AzksElement
Auto Trait Implementations§
impl RefUnwindSafe for AzksElement
impl Send for AzksElement
impl Sync for AzksElement
impl Unpin for AzksElement
impl UnwindSafe for AzksElement
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more