pub trait PartialObject: Clone + Debug {
    type Full: HasPartial<Partial = Self>;

    // Required methods
    fn new(objects: &mut Service<Objects>) -> Self;
    fn from_full(full: &Self::Full, cache: &mut FullToPartialCache) -> Self;
    fn build(self, objects: &mut Service<Objects>) -> Self::Full;
}
Expand description

Implemented for partial objects

Required Associated Types§

source

type Full: HasPartial<Partial = Self>

The type representing the full object

Required Methods§

source

fn new(objects: &mut Service<Objects>) -> Self

Construct a default partial object

source

fn from_full(full: &Self::Full, cache: &mut FullToPartialCache) -> Self

Construct a partial object from a full one

source

fn build(self, objects: &mut Service<Objects>) -> Self::Full

Build a full object from the partial object

Implementors§