Struct akd::storage::types::ValueState

source ·
pub struct ValueState {
    pub plaintext_val: AkdValue,
    pub version: u64,
    pub label: NodeLabel,
    pub epoch: u64,
    pub username: AkdLabel,
}
Expand description

The state of the value for a given key, starting at a particular epoch.

Fields

plaintext_val: AkdValue

The plaintext value of the user information in the directory

version: u64

The version of the user’s value-state

label: NodeLabel

The Node Label

epoch: u64

The epoch this value state was published in

username: AkdLabel

The username associated to this value state (username + epoch is the record key)

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This particular storage will have a key type
Must return a valid storage type
Retrieve an instance of the id of this storable. The combination of the storable’s StorageType and this id are globally unique Read more
Retrieve the full binary version of a key (for comparisons)
Reformat a key from the full-binary specification
Retrieve the full binary version of a key (for comparisons)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.