pub struct SolutionSubmissionsRepository<'a> { /* private fields */ }Implementations§
Source§impl SolutionSubmissionsRepository<'_>
impl SolutionSubmissionsRepository<'_>
pub async fn create_with_job( &self, input: &CreateSolutionSubmissionInput, ) -> Result<SolutionSubmissionRecord>
pub async fn ensure_parent_matches_scope( &self, parent_solution_submission_id: Option<&SolutionSubmissionId>, agent_id: &AgentId, challenge_name: &ChallengeName, target: &TargetName, ) -> Result<()>
pub async fn delete( &self, solution_submission_id: &SolutionSubmissionId, ) -> Result<()>
pub async fn get_by_id( &self, id: &SolutionSubmissionId, ) -> Result<Option<SolutionSubmissionRecord>>
pub async fn get_public_by_id( &self, id: &SolutionSubmissionId, ) -> Result<Option<SolutionSubmissionRecord>>
pub async fn list_admin( &self, limit: i64, ) -> Result<Vec<AdminSolutionSubmissionListItemRecord>>
pub async fn list_public_for_challenge( &self, challenge_name: &ChallengeName, target: &TargetName, limit: i64, ) -> Result<Vec<PublicSolutionSubmissionListItemRecord>>
pub async fn count_public_for_challenge( &self, challenge_name: &ChallengeName, target: &TargetName, ) -> Result<i64>
pub async fn observer_stats(&self) -> Result<PublicObserverStatsRecord>
pub async fn count_recent_runs_for_agent_challenge( &self, agent_id: &AgentId, challenge_name: &ChallengeName, target: &TargetName, eval_type: ScoringMode, window_seconds: i64, ) -> Result<i64>
pub async fn count_lifetime_runs_for_agent_challenge( &self, agent_id: &AgentId, challenge_name: &ChallengeName, target: &TargetName, eval_type: ScoringMode, ) -> Result<i64>
Trait Implementations§
Source§impl<'a> Clone for SolutionSubmissionsRepository<'a>
impl<'a> Clone for SolutionSubmissionsRepository<'a>
Source§fn clone(&self) -> SolutionSubmissionsRepository<'a>
fn clone(&self) -> SolutionSubmissionsRepository<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SolutionSubmissionsRepository<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SolutionSubmissionsRepository<'a>
impl<'a> !UnwindSafe for SolutionSubmissionsRepository<'a>
impl<'a> Freeze for SolutionSubmissionsRepository<'a>
impl<'a> Send for SolutionSubmissionsRepository<'a>
impl<'a> Sync for SolutionSubmissionsRepository<'a>
impl<'a> Unpin for SolutionSubmissionsRepository<'a>
impl<'a> UnsafeUnpin for SolutionSubmissionsRepository<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.