Trait toml_span::Deserialize

source ·
pub trait Deserialize<'de>: Sized {
    // Required method
    fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>;
}
Expand description

This crate’s equivalent to serde::Deserialize

Required Methods§

source

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

Given a mutable Value, allows you to deserialize the type from it, or accumulate 1 or more errors

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'de> Deserialize<'de> for Cow<'de, str>

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for bool

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for f32

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for f64

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for i8

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for i16

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for i32

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for i64

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for isize

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for u8

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for u16

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for u32

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for u64

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for usize

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de> Deserialize<'de> for String

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

source§

impl<'de, T> Deserialize<'de> for Vec<T>
where T: Deserialize<'de>,

source§

fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>

Implementors§

source§

impl<'de, T> Deserialize<'de> for Spanned<T>
where T: Deserialize<'de>,