Loadable

Trait Loadable 

Source
pub trait Loadable<DB, T: JoinMeta> {
    // Required method
    async fn load<'s, 'e, E>(&'s mut self, db: E) -> Result<&'s T>
       where T::IdType: 'e + Send + Sync,
             E: 'e + Executor<'e, Database = DB>,
             T: 's;
}

Required Methods§

Source

async fn load<'s, 'e, E>(&'s mut self, db: E) -> Result<&'s T>
where T::IdType: 'e + Send + Sync, E: 'e + Executor<'e, Database = DB>, T: 's,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<DB, T> Loadable<DB, T> for Join<T>
where DB: Database, T: JoinMeta + Model<DB> + Send, T::IdType: for<'a> Encode<'a, DB> + for<'a> Decode<'a, DB> + Type<DB>,