ValueExt

Trait ValueExt 

Source
pub trait ValueExt {
    // Required methods
    fn str_or<'a>(&'a self, key: &str, default: &'a str) -> &'a str;
    fn u64_or(&self, key: &str, default: u64) -> u64;
    fn bool_or(&self, key: &str, default: bool) -> bool;
    fn str_array_join(&self, key: &str, sep: &str) -> String;
}

Required Methods§

Source

fn str_or<'a>(&'a self, key: &str, default: &'a str) -> &'a str

Source

fn u64_or(&self, key: &str, default: u64) -> u64

Source

fn bool_or(&self, key: &str, default: bool) -> bool

Source

fn str_array_join(&self, key: &str, sep: &str) -> String

Implementations on Foreign Types§

Source§

impl ValueExt for Value

Source§

fn str_or<'a>(&'a self, key: &str, default: &'a str) -> &'a str

Source§

fn u64_or(&self, key: &str, default: u64) -> u64

Source§

fn bool_or(&self, key: &str, default: bool) -> bool

Source§

fn str_array_join(&self, key: &str, sep: &str) -> String

Implementors§