[][src]Trait fabric_contract::data::DataType

pub trait DataType: Default {
    fn to_state(&self) -> State;
fn get_key(&self) -> String;
fn build_from_state(state: State) -> Self;
fn form_key(k: &String) -> String; }

Required methods

fn to_state(&self) -> State

Converts into a state that can be handled and put into the ledger and private collections

fn get_key(&self) -> String

fn build_from_state(state: State) -> Self

fn form_key(k: &String) -> String

Loading content...

Implementors

Loading content...