pub struct TraceRepo { /* private fields */ }Implementations§
Source§impl TraceRepo
impl TraceRepo
pub fn new(pool: PgPool) -> Self
pub async fn insert(&self, trace: &Trace) -> Result<()>
pub async fn find_by_id(&self, id: Uuid) -> Result<Trace>
pub async fn list_by_run(&self, run_id: Uuid) -> Result<Vec<Trace>>
Sourcepub async fn list_by_run_paginated(
&self,
run_id: Uuid,
limit: i64,
offset: i64,
) -> Result<Vec<Trace>>
pub async fn list_by_run_paginated( &self, run_id: Uuid, limit: i64, offset: i64, ) -> Result<Vec<Trace>>
Paginated version of list_by_run.
Sourcepub async fn list_passing_scenario_ids(&self, run_id: Uuid) -> Result<Vec<Uuid>>
pub async fn list_passing_scenario_ids(&self, run_id: Uuid) -> Result<Vec<Uuid>>
Returns all scenario IDs that passed in a given run.
pub async fn count_review_needed(&self, run_id: Uuid) -> Result<i64>
Auto Trait Implementations§
impl !RefUnwindSafe for TraceRepo
impl !UnwindSafe for TraceRepo
impl Freeze for TraceRepo
impl Send for TraceRepo
impl Sync for TraceRepo
impl Unpin for TraceRepo
impl UnsafeUnpin for TraceRepo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more