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
Text(String)
A simple (variable) text
Boolean(bool)
A boolean (true, false)
Number(i64)
A 64bit, signed number
BTreeMap(BTreeMap<String, Payload>)
A tree of String names, mapped to payloads
List(Vec<Payload>)
A list of various payloads
Trait Implementations
impl Debug for Payload
[src]
impl Debug for Payload
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Payload
[src]
impl Eq for Payload
impl PartialEq for Payload
[src]
impl PartialEq for Payload
fn eq(&self, other: &Payload) -> bool
[src]
fn eq(&self, other: &Payload) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Payload) -> bool
[src]
fn ne(&self, other: &Payload) -> bool
This method tests for !=
.
impl Clone for Payload
[src]
impl Clone for Payload