Struct lockchain_core::Header
[−]
[src]
pub struct Header { pub name: String, pub category: String, pub tags: Vec<String>, pub fields: BTreeMap<String, Payload>, pub date_created: DateTime<Local>, pub date_updated: DateTime<Local>, }
The public header of a record
A header consists of always-available fields that are hard-defined in the lockchain file format as well as custom fields that can be declared by each application specifically.
You should never rely on the presence of custom fields as older version of the software might not support them or know about them!
Fields
name: String
The name of this record
category: String
The primary category the record is in
A collection of custom tags
fields: BTreeMap<String, Payload>
Custom fields to query by. **Do not store secure data in fields!
date_created: DateTime<Local>
Timestamp when the record was created
date_updated: DateTime<Local>
Timestamp when the record was last updated
Trait Implementations
impl Debug for Header
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Header
[src]
impl PartialEq for Header
[src]
fn eq(&self, __arg_0: &Header) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Header) -> bool
[src]
This method tests for !=
.