Skip to main content

Insertable

Trait Insertable 

Source
pub trait Insertable {
    // Required methods
    fn write_columns(sql: &mut String);
    fn write_values(&self, sql: &mut String);
}

Required Methods§

Source

fn write_columns(sql: &mut String)

Source

fn write_values(&self, sql: &mut String)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<I: Insertable> Insertable for &I

Source§

fn write_columns(sql: &mut String)

Source§

fn write_values(&self, sql: &mut String)

Implementors§

Source§

impl<S, I> Insertable for InsertSelect<S, I>
where S: Select, I: Insertable + ?Sized,