Struct jsonrpc::json_util::SerdeJsonDeserializerHelper
[−]
[src]
pub struct SerdeJsonDeserializerHelper<DE>(pub DE);
Trait Implementations
impl<'a, DE: Deserializer> JsonDeserializerHelper<DE::Error> for SerdeJsonDeserializerHelper<&'a mut DE>
[src]
fn new_error(&self, error_message: &str) -> DE::Error
fn obtain_Value(
&mut self,
json_map: &mut JsonObject,
key: &str
) -> Result<Value, ERR>
&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
&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>
&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>
&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>
&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>
&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>
&mut self,
json_map: &mut JsonObject,
key: &str
) -> Result<i64, ERR>