Trait unjson::GetField
[−]
[src]
pub trait GetField { fn get_field(&self, &'static str) -> Result<&Value>; fn get_string(&self, &'static str) -> Result<&str>; fn get_string_opt(&self, &'static str) -> Result<Option<&str>>; fn get_array(&self, &'static str) -> Result<&Array>; fn get_array_opt(&self, &'static str) -> Result<Option<&Array>>; fn get_object(&self, &'static str) -> Result<&Object>; fn get_object_opt(&self, &'static str) -> Result<Option<&Object>>; fn get_bool(&self, &'static str) -> Result<bool>; fn get_bool_opt(&self, &'static str) -> Result<Option<bool>>; fn get_i64(&self, &'static str) -> Result<i64>; fn get_i64_opt(&self, &'static str) -> Result<Option<i64>>; fn get_u64(&self, &'static str) -> Result<u64>; fn get_u64_opt(&self, &'static str) -> Result<Option<u64>>; fn get_f64(&self, &'static str) -> Result<f64>; fn get_f64_opt(&self, &'static str) -> Result<Option<f64>>; fn get_number(&self, &'static str) -> Result<f64>; fn get_number_opt(&self, &'static str) -> Result<Option<f64>>; }
Required Methods
fn get_field(&self, &'static str) -> Result<&Value>
fn get_string(&self, &'static str) -> Result<&str>
fn get_string_opt(&self, &'static str) -> Result<Option<&str>>
fn get_array(&self, &'static str) -> Result<&Array>
fn get_array_opt(&self, &'static str) -> Result<Option<&Array>>
fn get_object(&self, &'static str) -> Result<&Object>
fn get_object_opt(&self, &'static str) -> Result<Option<&Object>>
fn get_bool(&self, &'static str) -> Result<bool>
fn get_bool_opt(&self, &'static str) -> Result<Option<bool>>
fn get_i64(&self, &'static str) -> Result<i64>
fn get_i64_opt(&self, &'static str) -> Result<Option<i64>>
fn get_u64(&self, &'static str) -> Result<u64>
fn get_u64_opt(&self, &'static str) -> Result<Option<u64>>
fn get_f64(&self, &'static str) -> Result<f64>
fn get_f64_opt(&self, &'static str) -> Result<Option<f64>>
fn get_number(&self, &'static str) -> Result<f64>
fn get_number_opt(&self, &'static str) -> Result<Option<f64>>
Implementors
impl GetField for Object