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

The name of this record

The primary category the record is in

A collection of custom tags

Custom fields to query by. **Do not store secure data in fields!

Timestamp when the record was created

Timestamp when the record was last updated

Trait Implementations

impl Debug for Header
[src]

Formats the value using the given formatter. Read more

impl Eq for Header
[src]

impl PartialEq for Header
[src]

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

This method tests for !=.

impl Clone for Header
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Header

impl Sync for Header