[−][src]Struct strason::object::Deserializer
A "Json to whatever" deserializer
Methods
impl Deserializer
[src]
pub fn new<T>(val: T) -> Deserializer where
Json: From<T>,
[src]
Json: From<T>,
Creates a new deserializer from a Json value
Trait Implementations
impl<'de> Deserializer<'de> for Deserializer
[src]
type Error = Error
The error type that can be returned if some error occurs during deserialization. Read more
fn deserialize_any<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_bool<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_i8<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_i16<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_i32<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_i64<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_u8<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_u16<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_u32<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_u64<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_f32<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_f64<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_option<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_char<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_str<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_string<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_bytes<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_byte_buf<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_unit<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_unit_struct<V: Visitor<'de>>(
self,
_: &'static str,
v: V
) -> Result<V::Value, Error>
[src]
self,
_: &'static str,
v: V
) -> Result<V::Value, Error>
fn deserialize_newtype_struct<V: Visitor<'de>>(
self,
_: &'static str,
v: V
) -> Result<V::Value, Error>
[src]
self,
_: &'static str,
v: V
) -> Result<V::Value, Error>
fn deserialize_seq<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_map<V: Visitor<'de>>(self, v: V) -> Result<V::Value, Error>
[src]
fn deserialize_tuple<V: Visitor<'de>>(
self,
_: usize,
v: V
) -> Result<V::Value, Error>
[src]
self,
_: usize,
v: V
) -> Result<V::Value, Error>
fn deserialize_tuple_struct<V: Visitor<'de>>(
self,
_: &'static str,
_: usize,
v: V
) -> Result<V::Value, Error>
[src]
self,
_: &'static str,
_: usize,
v: V
) -> Result<V::Value, Error>
fn deserialize_struct<V: Visitor<'de>>(
self,
_: &'static str,
_: &'static [&'static str],
v: V
) -> Result<V::Value, Error>
[src]
self,
_: &'static str,
_: &'static [&'static str],
v: V
) -> Result<V::Value, Error>
fn deserialize_enum<V: Visitor<'de>>(
self,
_: &'static str,
_: &'static [&'static str],
v: V
) -> Result<V::Value, Error>
[src]
self,
_: &'static str,
_: &'static [&'static str],
v: V
) -> Result<V::Value, Error>
fn deserialize_identifier<V: Visitor<'de>>(
self,
v: V
) -> Result<V::Value, Error>
[src]
self,
v: V
) -> Result<V::Value, Error>
fn deserialize_ignored_any<V: Visitor<'de>>(
self,
v: V
) -> Result<V::Value, Error>
[src]
self,
v: V
) -> Result<V::Value, Error>
fn is_human_readable(&self) -> bool
[src]
fn deserialize_i128<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, Self::Error> where
V: Visitor<'de>,
[src]
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, Self::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an i128
value. Read more
fn deserialize_u128<V>(
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, Self::Error> where
V: Visitor<'de>,
[src]
self,
visitor: V
) -> Result<<V as Visitor<'de>>::Value, Self::Error> where
V: Visitor<'de>,
Hint that the Deserialize
type is expecting an u128
value. Read more
Auto Trait Implementations
impl Unpin for Deserializer
impl Sync for Deserializer
impl Send for Deserializer
impl UnwindSafe for Deserializer
impl RefUnwindSafe for Deserializer
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,