Struct SerdeJsonDeserializerHelper

Source
pub struct SerdeJsonDeserializerHelper<DE>(pub DE);

Tuple Fields§

§0: DE

Trait Implementations§

Source§

impl<'a, DE: Deserializer> JsonDeserializerHelper<<DE as Deserializer>::Error> for SerdeJsonDeserializerHelper<&'a mut DE>

Source§

fn new_error(&self, error_message: &str) -> DE::Error

Source§

fn obtain_Value( &mut self, json_map: &mut JsonObject, key: &str, ) -> Result<Value, ERR>

Source§

fn obtain_Value_or( &mut self, json_map: &mut JsonObject, key: &str, default: &dyn Fn() -> Value, ) -> Value

Source§

fn as_String(&mut self, value: Value) -> Result<String, ERR>

Source§

fn as_Object(&mut self, value: Value) -> Result<JsonObject, ERR>

Source§

fn as_u32(&mut self, value: Value) -> Result<u32, ERR>

Source§

fn as_i64(&mut self, value: Value) -> Result<i64, ERR>

Source§

fn obtain_String( &mut self, json_map: &mut JsonObject, key: &str, ) -> Result<String, ERR>

Source§

fn obtain_Object( &mut self, json_map: &mut JsonObject, key: &str, ) -> Result<JsonObject, ERR>

Source§

fn obtain_Object_or( &mut self, json_map: &mut JsonObject, key: &str, default: &dyn Fn() -> JsonObject, ) -> Result<JsonObject, ERR>

Source§

fn obtain_u32( &mut self, json_map: &mut JsonObject, key: &str, ) -> Result<u32, ERR>

Source§

fn obtain_i64( &mut self, json_map: &mut JsonObject, key: &str, ) -> Result<i64, ERR>

Auto Trait Implementations§

§

impl<DE> Freeze for SerdeJsonDeserializerHelper<DE>
where DE: Freeze,

§

impl<DE> RefUnwindSafe for SerdeJsonDeserializerHelper<DE>
where DE: RefUnwindSafe,

§

impl<DE> Send for SerdeJsonDeserializerHelper<DE>
where DE: Send,

§

impl<DE> Sync for SerdeJsonDeserializerHelper<DE>
where DE: Sync,

§

impl<DE> Unpin for SerdeJsonDeserializerHelper<DE>
where DE: Unpin,

§

impl<DE> UnwindSafe for SerdeJsonDeserializerHelper<DE>
where DE: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.