Trait unjson::ExtractField [] [src]

pub trait ExtractField {
    fn extract_field(&mut self, &'static str) -> Result<Value>;
    fn extract_string(&mut self, &'static str) -> Result<String>;
    fn extract_string_opt(&mut self, &'static str) -> Result<Option<String>>;
    fn extract_array(&mut self, &'static str) -> Result<Array>;
    fn extract_array_opt(&mut self, &'static str) -> Result<Option<Array>>;
    fn extract_object(&mut self, &'static str) -> Result<Object>;
    fn extract_object_opt(&mut self, &'static str) -> Result<Option<Object>>;
    fn extract_bool(&mut self, &'static str) -> Result<bool>;
    fn extract_bool_opt(&mut self, &'static str) -> Result<Option<bool>>;
    fn extract_i64(&mut self, &'static str) -> Result<i64>;
    fn extract_i64_opt(&mut self, &'static str) -> Result<Option<i64>>;
    fn extract_u64(&mut self, &'static str) -> Result<u64>;
    fn extract_u64_opt(&mut self, &'static str) -> Result<Option<u64>>;
    fn extract_f64(&mut self, &'static str) -> Result<f64>;
    fn extract_f64_opt(&mut self, &'static str) -> Result<Option<f64>>;
    fn extract_number(&mut self, &'static str) -> Result<f64>;
    fn extract_number_opt(&mut self, &'static str) -> Result<Option<f64>>;
}

Required Methods

fn extract_field(&mut self, &'static str) -> Result<Value>

fn extract_string(&mut self, &'static str) -> Result<String>

fn extract_string_opt(&mut self, &'static str) -> Result<Option<String>>

fn extract_array(&mut self, &'static str) -> Result<Array>

fn extract_array_opt(&mut self, &'static str) -> Result<Option<Array>>

fn extract_object(&mut self, &'static str) -> Result<Object>

fn extract_object_opt(&mut self, &'static str) -> Result<Option<Object>>

fn extract_bool(&mut self, &'static str) -> Result<bool>

fn extract_bool_opt(&mut self, &'static str) -> Result<Option<bool>>

fn extract_i64(&mut self, &'static str) -> Result<i64>

fn extract_i64_opt(&mut self, &'static str) -> Result<Option<i64>>

fn extract_u64(&mut self, &'static str) -> Result<u64>

fn extract_u64_opt(&mut self, &'static str) -> Result<Option<u64>>

fn extract_f64(&mut self, &'static str) -> Result<f64>

fn extract_f64_opt(&mut self, &'static str) -> Result<Option<f64>>

fn extract_number(&mut self, &'static str) -> Result<f64>

fn extract_number_opt(&mut self, &'static str) -> Result<Option<f64>>

Implementors