Struct lockchain_core::MetaDomain[][src]

pub struct MetaDomain { /* fields omitted */ }

A metadomain is a simplified version of a cleartext record.

It is not encoded in special ways, it is not used in any way for secret information. All data inside a metadata file (for example, living inside the metadata folder of a vault) is public to all.

It can be used for things that need to be stored in encrypted form where the encryption key is never present. Or for simple authentication verification such as:

  • User registry
  • Per-user encrypted primary keys
  • Usage statistics shared between clients

It implements a series of traits which means it's possible to easily interact with to store data.

Methods

impl MetaDomain
[src]

Create a new domain space struct

Return a MetaDomain that is filled with pre-existing data

Return a read-only reference to the entire body

Return the domain name for easy comparison

Get the number of items in this domain

Trait Implementations

impl From<MetaDomain> for KeyStore
[src]

Performs the conversion.

impl From<KeyStore> for MetaDomain
[src]

Performs the conversion.

impl Debug for MetaDomain
[src]

Formats the value using the given formatter. Read more

impl Clone for MetaDomain
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for MetaDomain
[src]

impl PartialEq for MetaDomain
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl AutoEncoder for MetaDomain
[src]

impl Body for MetaDomain
[src]

Get the value of a field from this body

Set the value of a field

Not implemented, always returns None

Auto Trait Implementations

impl Send for MetaDomain

impl Sync for MetaDomain