Module serde::de::value
[−]
[src]
Building blocks for deserializing basic values using the IntoDeserializer
trait.
#[macro_use] extern crate serde_derive; extern crate serde; use std::str::FromStr; use serde::de::{value, Deserialize, IntoDeserializer}; #[derive(Deserialize)] enum Setting { On, Off, } impl FromStr for Setting { type Err = value::Error; fn from_str(s: &str) -> Result<Self, Self::Err> { Self::deserialize(s.into_deserializer()) } }
Structs
BoolDeserializer |
A deserializer holding
a |
CharDeserializer |
A deserializer holding
a |
CowStrDeserializer |
A deserializer holding a |
Error |
A minimal representation of all possible errors that can occur using the
|
F32Deserializer |
A deserializer holding
an |
F64Deserializer |
A deserializer holding
an |
I16Deserializer |
A deserializer holding
an |
I32Deserializer |
A deserializer holding
an |
I64Deserializer |
A deserializer holding
an |
I8Deserializer |
A deserializer holding
an |
IsizeDeserializer |
A deserializer holding
an |
MapAccessDeserializer |
A deserializer holding a |
MapDeserializer |
A deserializer that iterates over a map. |
SeqAccessDeserializer |
A deserializer holding a |
SeqDeserializer |
A deserializer that iterates over a sequence. |
StrDeserializer |
A deserializer holding a |
StringDeserializer |
A deserializer holding a |
U16Deserializer |
A deserializer holding
a |
U32Deserializer |
A deserializer holding a |
U64Deserializer |
A deserializer holding
a |
U8Deserializer |
A deserializer holding
a |
UnitDeserializer |
A deserializer holding a |
UsizeDeserializer |
A deserializer holding
a |