ValueMap

Type Alias ValueMap 

Source
pub type ValueMap = Vec<(Value, Value)>;

Aliased Type§

pub struct ValueMap { /* private fields */ }

Trait Implementations§

Source§

impl ValueMapHelper for ValueMap

Source§

fn sort_by_keys(&mut self)

Source§

fn sort_by_keys_and_inner_maps(&mut self)

Source§

fn sort_by_lexicographical_byte_ordering_keys(&mut self)

Source§

fn sort_by_lexicographical_byte_ordering_keys_and_inner_maps(&mut self)

Source§

fn get_key(&self, search_key: &str) -> Result<&Value, Error>

Source§

fn get_optional_key(&self, search_key: &str) -> Option<&Value>

Source§

fn get_key_mut(&mut self, search_key: &str) -> Result<&mut Value, Error>

Source§

fn get_optional_key_mut(&mut self, search_key: &str) -> Option<&mut Value>

Source§

fn get_key_mut_or_insert( &mut self, search_key: &str, value: Value, ) -> &mut Value

Source§

fn get_key_by_value_mut_or_insert( &mut self, search_key: &Value, value: Value, ) -> &mut Value

Source§

fn insert_string_key_value(&mut self, key: String, value: Value)

Source§

fn remove_key(&mut self, search_key: &str) -> Result<Value, Error>

Source§

fn remove_optional_key(&mut self, search_key: &str) -> Option<Value>

Source§

fn remove_optional_key_if_null(&mut self, search_key: &str)

Source§

fn remove_optional_key_if_empty_array(&mut self, search_key: &str)

Source§

fn remove_optional_key_value( &mut self, search_key_value: &Value, ) -> Option<Value>

Source§

fn from_btree_map<K: Into<Value> + Ord, V: Into<Value>>( btree_map: BTreeMap<K, V>, ) -> Self