pub trait QueryBindExt<'q, DB: Database>: Sized {
// Required method
fn bind<T>(self, value: T) -> Self
where T: 'q + Send + Encode<'q, DB> + Type<DB>;
// Provided methods
fn bind_with<T>(self, value: T, bind_fn: impl Fn(Self, T) -> Self) -> Self { ... }
fn bind_multi<T>(self, values: impl IntoIterator<Item = T>) -> Self
where T: 'q + Send + Encode<'q, DB> + Type<DB> { ... }
fn bind_multi_with<T: 'q>(
self,
values: impl IntoIterator<Item = &'q T>,
bind_fn: impl Fn(Self, &'q T) -> Self,
) -> Self { ... }
fn bind_fields<T: Insertable<Database = DB>>(self, value: &'q T) -> Self { ... }
fn bind_multi_fields<T: Insertable<Database = DB> + 'q>(
self,
values: impl IntoIterator<Item = &'q T>,
) -> Self { ... }
}
Required Methods§
Provided Methods§
fn bind_with<T>(self, value: T, bind_fn: impl Fn(Self, T) -> Self) -> Self
fn bind_multi<T>(self, values: impl IntoIterator<Item = T>) -> Self
fn bind_multi_with<T: 'q>( self, values: impl IntoIterator<Item = &'q T>, bind_fn: impl Fn(Self, &'q T) -> Self, ) -> Self
fn bind_fields<T: Insertable<Database = DB>>(self, value: &'q T) -> Self
fn bind_multi_fields<T: Insertable<Database = DB> + 'q>( self, values: impl IntoIterator<Item = &'q T>, ) -> Self
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.