[][src]Trait cortex::concerns::CortexInsertable

pub trait CortexInsertable {
    fn create(&self, connection: &PgConnection) -> Result<usize, Error>;
}

A minimalistic ORM trait for CorTeX data items

Required methods

fn create(&self, connection: &PgConnection) -> Result<usize, Error>

Creates a new item given a connection

Loading content...

Implementors

impl CortexInsertable for NewTaskMessage[src]

impl CortexInsertable for NewCorpus[src]

impl CortexInsertable for NewHistoricalRun[src]

impl CortexInsertable for NewLogError[src]

impl CortexInsertable for NewLogFatal[src]

impl CortexInsertable for NewLogInfo[src]

impl CortexInsertable for NewLogInvalid[src]

impl CortexInsertable for NewLogWarning[src]

impl CortexInsertable for NewService[src]

impl CortexInsertable for NewTask[src]

Loading content...