Enum lockchain_core::Payload[][src]

pub enum Payload {
    Text(String),
    Boolean(bool),
    Number(i64),
    BTreeMap(BTreeMap<String, Payload>),
    List(Vec<Payload>),
}

An enum that wraps around all possible data types to store as the value of a vault record.

This doesn't include metadata attached to a field, just the data representation itself (i.e. text, number or sub data-tree)

Variants

A simple (variable) text

A boolean (true, false)

A 64bit, signed number

A tree of String names, mapped to payloads

A list of various payloads

Trait Implementations

impl Debug for Payload
[src]

Formats the value using the given formatter. Read more

impl Eq for Payload
[src]

impl PartialEq for Payload
[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 Payload
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Payload

impl Sync for Payload