pub trait Format {
    // Required method
    fn deserialize(
        input: &[u8],
        de: TypedReflectDeserializer<'_>
    ) -> Result<Box<dyn Reflect>>;
}
Expand description

A serde deserializer used to parse some input into a Box<dyn Reflect>.

This is used in ReflectDsl to deserialize method arguments (T’s field values). A default implementation is provided with RonFormat.

Required Methods§

source

fn deserialize( input: &[u8], de: TypedReflectDeserializer<'_> ) -> Result<Box<dyn Reflect>>

Deserialize into a Box<dyn Reflect>, any error is propagated by ReflectDsl::method.

Object Safety§

This trait is not object safe.

Implementors§