Trait rustorm::dao::ToCompact
[−]
[src]
pub trait ToCompact {
fn redundant_fields(&self) -> Vec<&str>;
fn compact_map(&self) -> BTreeMap<String, Value>;
fn compact_dao(&self) -> Dao;
fn compact_json(&self) -> Json;
}Ignore Column are columns that are redundant when displaying as API results
Required Methods
fn redundant_fields(&self) -> Vec<&str>
list of redundant fields that will be removed when doing a compact serialization
fn compact_map(&self) -> BTreeMap<String, Value>
compact BTreeMap represetation
fn compact_dao(&self) -> Dao
compact dao representation
fn compact_json(&self) -> Json
compact dao representation