Module serde::de::value [−][src]
Expand description
Building blocks for deserializing basic values using the IntoDeserializer
trait.
use std::str::FromStr; use serde::Deserialize; use serde::de::{value, 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 |
BorrowedBytesDeserializer | A deserializer holding a |
BorrowedStrDeserializer | A deserializer holding a |
BytesDeserializer | 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 |
I8Deserializer | A deserializer holding
an |
I16Deserializer | A deserializer holding
an |
I32Deserializer | A deserializer holding
an |
I64Deserializer | A deserializer holding
an |
I128Deserializer | 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 |
U8Deserializer | A deserializer holding
a |
U16Deserializer | A deserializer holding
a |
U32Deserializer | A deserializer holding a |
U64Deserializer | A deserializer holding
a |
U128Deserializer | A deserializer holding
a |
UnitDeserializer | A deserializer holding a |
UsizeDeserializer | A deserializer holding
a |