Trait jsonrpc::json_util::JsonDeserializerHelper [] [src]

pub trait JsonDeserializerHelper<ERR> {
    fn new_error(&self, error_message: &str) -> ERR;

    fn obtain_Value(&mut self,
                json_map: &mut JsonObject,
                key: &str)
                -> Result<Value, ERR> { ... } fn obtain_Value_or(&mut self,
                   json_map: &mut JsonObject,
                   key: &str,
                   default: &Fn() -> Value)
                   -> Value { ... } fn as_String(&mut self, value: Value) -> Result<String, ERR> { ... } fn as_Object(&mut self, value: Value) -> Result<JsonObject, ERR> { ... } fn as_u32(&mut self, value: Value) -> Result<u32, ERR> { ... } fn as_i64(&mut self, value: Value) -> Result<i64, ERR> { ... } fn obtain_String(&mut self,
                 json_map: &mut JsonObject,
                 key: &str)
                 -> Result<String, ERR> { ... } fn obtain_Object(&mut self,
                 json_map: &mut JsonObject,
                 key: &str)
                 -> Result<JsonObject, ERR> { ... } fn obtain_Object_or(&mut self,
                    json_map: &mut JsonObject,
                    key: &str,
                    default: &Fn() -> JsonObject)
                    -> Result<JsonObject, ERR> { ... } fn obtain_u32(&mut self,
              json_map: &mut JsonObject,
              key: &str)
              -> Result<u32, ERR> { ... } fn obtain_i64(&mut self,
              json_map: &mut JsonObject,
              key: &str)
              -> Result<i64, ERR> { ... } }

Required Methods

Provided Methods

Implementors