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 the domain name for easy comparison

Get the number of items in this domain

Trait Implementations

impl Debug for MetaDomain
[src]

Formats the value using the given formatter. Read more

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