flinch::extension

Trait JsonMapExt

Source
pub trait JsonMapExt {
    // Required methods
    fn get_str(&self, name: &str) -> String;
    fn get_object(&self, name: &str) -> Map<String, Value>;
    fn get_array(&self, name: &str) -> Vec<Value>;
}

Required Methods§

Source

fn get_str(&self, name: &str) -> String

Source

fn get_object(&self, name: &str) -> Map<String, Value>

Source

fn get_array(&self, name: &str) -> Vec<Value>

Implementations on Foreign Types§

Source§

impl JsonMapExt for Map<String, Value>

Source§

fn get_str(&self, name: &str) -> String

Source§

fn get_object(&self, name: &str) -> Map<String, Value>

Source§

fn get_array(&self, name: &str) -> Vec<Value>

Implementors§