Struct codes_common::SimpleData
source · pub struct SimpleData { /* private fields */ }Trait Implementations§
source§impl Data for SimpleData
impl Data for SimpleData
fn new(type_name: &'static str) -> Selfwhere
Self: Sized,
fn type_name(&self) -> &'static str
fn rows(&self) -> &BTreeMap<String, Map<String, Value>>
fn rows_mut(&mut self) -> &mut BTreeMap<String, Map<String, Value>>
fn into_rows(self) -> BTreeMap<String, Map<String, Value>>
fn all_ids(&self) -> Vec<&String> ⓘ
fn all_ids_sorted(&self) -> Value
fn contains(&self, id: &str) -> bool
fn get(&self, id: &str) -> Option<&Map<String, Value>>
fn get_mut(&mut self, id: &str) -> Option<&mut Map<String, Value>>
fn insert_row(&mut self, id: &str, row: Map<String, Value>)
fn insert_row_value(&mut self, id: &str, key: &str, value: Value)
source§impl Debug for SimpleData
impl Debug for SimpleData
source§impl Default for SimpleData
impl Default for SimpleData
source§fn default() -> SimpleData
fn default() -> SimpleData
Returns the “default value” for a type. Read more