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

Implementors