pub(crate) trait CliUtils {
// Required methods
fn get_str<'a>(&'a self, key: &str) -> Result<&'a str>;
fn get_bool(&self, key: &str) -> Result<bool>;
fn get_array<'a>(&'a self, key: &str) -> Result<&'a Vec<Value>>;
fn get_mut_array<'a>(&'a mut self, key: &str) -> Result<&'a mut Vec<Value>>;
fn get_mut_object<'a>(&'a mut self, key: &str) -> Result<&'a mut Value>;
fn get_object<'a>(&'a self, key: &str) -> Result<&'a Value>;
fn get_u64(&self, key: &str) -> Result<u64>;
fn has(&self, key: &str) -> bool;
fn set<V>(&mut self, key: &str, value: V) -> Result<()>
where V: Serialize;
}
Required Methods§
fn get_str<'a>(&'a self, key: &str) -> Result<&'a str>
fn get_bool(&self, key: &str) -> Result<bool>
fn get_array<'a>(&'a self, key: &str) -> Result<&'a Vec<Value>>
fn get_mut_array<'a>(&'a mut self, key: &str) -> Result<&'a mut Vec<Value>>
fn get_mut_object<'a>(&'a mut self, key: &str) -> Result<&'a mut Value>
fn get_object<'a>(&'a self, key: &str) -> Result<&'a Value>
fn get_u64(&self, key: &str) -> Result<u64>
fn has(&self, key: &str) -> bool
fn set<V>(&mut self, key: &str, value: V) -> Result<()>where
V: Serialize,
Object Safety§
This trait is not object safe.