Trait DeserializeStructTuple

Source
pub trait DeserializeStructTuple {
    type Value;

    // Required method
    fn visitor<'de>() -> impl Visitor<'de, Value = Self::Value>;
}
Expand description

Trait for deserializing a struct from a tuple of its fields.

Required Associated Types§

Required Methods§

Source

fn visitor<'de>() -> impl Visitor<'de, Value = Self::Value>

The serde::de::Visitor implementation that reads all fields from a sequence into the struct.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§