Skip to main content

Input

Trait Input 

Source
pub trait Input: Sized {
    // Required method
    fn from_json(value: Value) -> Result<Self>;
}

Required Methods§

Source

fn from_json(value: Value) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Input for ()

No fields: reading it refuses every field given.

Source§

fn from_json(value: Value) -> Result<Self>

Implementors§