[][src]Struct cortex::models::NewTask

pub struct NewTask {
    pub service_id: i32,
    pub corpus_id: i32,
    pub status: i32,
    pub entry: String,
}

A new task, to be inserted into CorTeX

Fields

service_id: i32

id of the service owning this task

corpus_id: i32

id of the corpus hosting this task

status: i32

current processing status of this task

entry: String

entry path on the file system

Implementations

impl NewTask[src]

pub fn create_if_new(&self, connection: &PgConnection) -> Result<usize, Error>[src]

Creates the task unless already present in the DB (entry conflict)

Trait Implementations

impl Clone for NewTask[src]

impl CortexDeletable for NewTask[src]

impl CortexInsertable for NewTask[src]

impl Debug for NewTask[src]

impl<'insert> Insertable<table> for NewTask[src]

type Values = <(Option<Eq<service_id, i32>>, Option<Eq<corpus_id, i32>>, Option<Eq<status, i32>>, Option<Eq<entry, String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for &'insert NewTask[src]

type Values = <(Option<Eq<service_id, &'insert i32>>, Option<Eq<corpus_id, &'insert i32>>, Option<Eq<status, &'insert i32>>, Option<Eq<entry, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> UndecoratedInsertRecord<table> for NewTask[src]

Auto Trait Implementations

impl RefUnwindSafe for NewTask

impl Send for NewTask

impl Sync for NewTask

impl Unpin for NewTask

impl UnwindSafe for NewTask

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, I> AsResult<T, I> for T where
    I: Input, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoCollection<T> for T

impl<T> IntoSql for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,