[−][src]Struct cortex::models::HistoricalRun
Historical (Corpus, Service)
run records
Fields
id: i32
task primary key, auto-incremented by postgresql
service_id: i32
id of the service owning this task
corpus_id: i32
id of the corpus hosting this task
total: i32
total tasks in run
invalid: i32
invalid tasks in run
fatal: i32
fatal results in run
error: i32
error results in run
warning: i32
warning results in run
no_problem: i32
results with no notable problems in run
in_progress: i32
tasks still in progress at end of run
start_time: NaiveDateTime
start timestamp of run
end_time: Option<NaiveDateTime>
end timestamp of run, i.e. timestamp of next run initiation
owner: String
owner who initiated the run
description: String
description of the purpose of this run
Implementations
impl HistoricalRun
[src]
pub fn find_by(
corpus: &Corpus,
service: &Service,
connection: &PgConnection
) -> Result<Vec<HistoricalRun>, Error>
[src]
corpus: &Corpus,
service: &Service,
connection: &PgConnection
) -> Result<Vec<HistoricalRun>, Error>
Obtain all historical runs for a given (Corpus, Service)
pair
pub fn find_current(
corpus: &Corpus,
service: &Service,
connection: &PgConnection
) -> Result<Option<HistoricalRun>, Error>
[src]
corpus: &Corpus,
service: &Service,
connection: &PgConnection
) -> Result<Option<HistoricalRun>, Error>
Obtain a currently ongoing run entry for a (Corpus, Service)
pair, if any
pub fn mark_completed(&self, connection: &PgConnection) -> Result<(), Error>
[src]
Mark this historical run as completed, by setting end_time
to the current time.
Trait Implementations
impl Clone for HistoricalRun
[src]
fn clone(&self) -> HistoricalRun
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HistoricalRun
[src]
impl Eq for HistoricalRun
[src]
impl From<HistoricalRun> for RunMetadata
[src]
fn from(run: HistoricalRun) -> RunMetadata
[src]
impl HasTable for HistoricalRun
[src]
impl<'ident> Identifiable for &'ident HistoricalRun
[src]
impl PartialEq<HistoricalRun> for HistoricalRun
[src]
fn eq(&self, other: &HistoricalRun) -> bool
[src]
fn ne(&self, other: &HistoricalRun) -> bool
[src]
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for HistoricalRun where
(i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, NaiveDateTime, Option<NaiveDateTime>, String, String): Queryable<__ST, __DB>,
[src]
(i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, NaiveDateTime, Option<NaiveDateTime>, String, String): Queryable<__ST, __DB>,
type Row = <(i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, NaiveDateTime, Option<NaiveDateTime>, String, String) as Queryable<__ST, __DB>>::Row
The Rust type you'd like to map from. Read more
fn build(row: Self::Row) -> Self
[src]
impl<__DB: Backend> QueryableByName<__DB> for HistoricalRun where
i32: FromSql<SqlTypeOf<id>, __DB>,
i32: FromSql<SqlTypeOf<service_id>, __DB>,
i32: FromSql<SqlTypeOf<corpus_id>, __DB>,
i32: FromSql<SqlTypeOf<total>, __DB>,
i32: FromSql<SqlTypeOf<invalid>, __DB>,
i32: FromSql<SqlTypeOf<fatal>, __DB>,
i32: FromSql<SqlTypeOf<error>, __DB>,
i32: FromSql<SqlTypeOf<warning>, __DB>,
i32: FromSql<SqlTypeOf<no_problem>, __DB>,
i32: FromSql<SqlTypeOf<in_progress>, __DB>,
NaiveDateTime: FromSql<SqlTypeOf<start_time>, __DB>,
Option<NaiveDateTime>: FromSql<SqlTypeOf<end_time>, __DB>,
String: FromSql<SqlTypeOf<owner>, __DB>,
String: FromSql<SqlTypeOf<description>, __DB>,
[src]
i32: FromSql<SqlTypeOf<id>, __DB>,
i32: FromSql<SqlTypeOf<service_id>, __DB>,
i32: FromSql<SqlTypeOf<corpus_id>, __DB>,
i32: FromSql<SqlTypeOf<total>, __DB>,
i32: FromSql<SqlTypeOf<invalid>, __DB>,
i32: FromSql<SqlTypeOf<fatal>, __DB>,
i32: FromSql<SqlTypeOf<error>, __DB>,
i32: FromSql<SqlTypeOf<warning>, __DB>,
i32: FromSql<SqlTypeOf<no_problem>, __DB>,
i32: FromSql<SqlTypeOf<in_progress>, __DB>,
NaiveDateTime: FromSql<SqlTypeOf<start_time>, __DB>,
Option<NaiveDateTime>: FromSql<SqlTypeOf<end_time>, __DB>,
String: FromSql<SqlTypeOf<owner>, __DB>,
String: FromSql<SqlTypeOf<description>, __DB>,
impl StructuralEq for HistoricalRun
[src]
impl StructuralPartialEq for HistoricalRun
[src]
Auto Trait Implementations
impl RefUnwindSafe for HistoricalRun
impl Send for HistoricalRun
impl Sync for HistoricalRun
impl Unpin for HistoricalRun
impl UnwindSafe for HistoricalRun
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,