pub trait Insert: Sized {
    type Inserted;

    // Required method
    fn insert(self, services: &mut Services) -> Self::Inserted;
}
Expand description

Insert an object into its respective store

This is the only primitive operation that is directly understood by Service<Objects>. All other operations are built on top of it.

Required Associated Types§

source

type Inserted

The type of Self, once it has been inserted

Usually this is just Handle<Self>, but there are some more complex cases where this type needs to be customized.

Required Methods§

source

fn insert(self, services: &mut Services) -> Self::Inserted

Insert the object into its respective store

Implementors§