Trait savefile::Deserialize[][src]

pub trait Deserialize: WithSchema + Sized {
    fn deserialize(
        deserializer: &mut Deserializer<'_>
    ) -> Result<Self, SavefileError>; }
Expand description

This trait must be implemented for all data structures you wish to be able to deserialize.

The most convenient way to implement this is to use #[macro_use] extern crate savefile-derive;

and the use #[derive(Deserialize)]

Required methods

Deserialize and return an instance of Self from the given deserializer.

Implementations on Foreign Types

Implementors