Skip to main content

InsertExt

Trait InsertExt 

Source
pub trait InsertExt<Out> {
    // Required methods
    fn execute<'e, E>(self, ex: &'e E) -> BoxFuture<'e, Result<u64, Error>>
       where E: Executor + Send + Sync + 'e;
    fn one<'e, E>(self, ex: &'e E) -> BoxFuture<'e, Result<Option<Out>, Error>>
       where E: Executor + Send + Sync + 'e,
             Out: for<'r> FromRow<'r, PgRow> + Send + Unpin + 'e;
}

Required Methods§

Source

fn execute<'e, E>(self, ex: &'e E) -> BoxFuture<'e, Result<u64, Error>>
where E: Executor + Send + Sync + 'e,

Source

fn one<'e, E>(self, ex: &'e E) -> BoxFuture<'e, Result<Option<Out>, Error>>
where E: Executor + Send + Sync + 'e, Out: for<'r> FromRow<'r, PgRow> + Send + Unpin + 'e,

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<Out> InsertExt<Out> for Insert<Out>