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.
Return the domain name for easy comparison
Get the number of items in this domain
Get the value of a field from this body
Not implemented, always returns None