fn insert(&'a self, conn: &PgConnection) -> Result<Self::MappedReturn, Error>
    where
        InsertStatement<Self::Table, <Self::Insertable as Insertable<Self::Table>>::Values>:
            RunQueryDsl<PgConnection> + LoadQuery<PgConnection, Self::Return>,
    {
        let result: Self::Return = diesel::insert_into(Self::Table::table())
            .values(Self::Insertable::try_from(self)?)
            .get_result(conn)?;
        result.try_into()
    }
/// Insert a value into the table.
Insert a value into the table.
Insert a value into the table .
fn insert(&'a self, conn: &PgConnection) -> Result<Self::MappedReturn, Error>
    where
        InsertStatement<Self::Table, <Self::Insertable as Insertable<Self::Table>>::Values>:
            RunQueryDsl<PgConnection> + LoadQuery<PgConnection, Self::Return>,
    {
        let result: Self::Return = diesel::insert_into(Self::Table::table())
            .values(Self::Insertable::try_from(self)?)
            .get_result(conn)?;
        result.try_into()
    }
fn insert ( & ' a self , conn : & PgConnection ) -> Result < Self :: MappedReturn , Error > where InsertStatement < Self :: Table , < Self :: Insertable as Insertable < Self :: Table > > :: Values > : RunQueryDsl < PgConnection > + LoadQuery < PgConnection , Self :: Return > , { let result : Self :: Return = diesel :: insert_into ( Self :: Table :: table ( ) ) . values ( Self :: Insertable :: try_from ( self ) ? ) . get_result ( conn ) ? ; result . try_into ( ) }
Insert a value into the table.
Insert a value into the table .
&'a self
conn
&PgConnection
&'a self
conn
&PgConnection