Skip to main content

IntoInsert

Trait IntoInsert 

Source
pub trait IntoInsert {
    type Model: Model;

    // Required method
    fn into_insert(self) -> Insert<Self::Model>;
}
Expand description

Convert a value into an Insert statement.

Generated create-builders implement this trait so that they can be passed anywhere an insert is expected (e.g., association insert calls or batch operations).

The associated type Model identifies which model the insert targets.

Required Associated Types§

Source

type Model: Model

The model this insert targets.

Required Methods§

Source

fn into_insert(self) -> Insert<Self::Model>

Consume self and produce the Insert statement.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§