pub struct ChallengesRepository<'a> { /* private fields */ }Implementations§
Source§impl ChallengesRepository<'_>
impl ChallengesRepository<'_>
pub async fn list_admin(&self) -> Result<Vec<AdminChallengeListItemRecord>>
pub async fn set_moltbook_discussion( &self, challenge_name: &ChallengeName, discussion_url: &MoltbookPostUrl, ) -> Result<ChallengeMoltbookDiscussionRecord>
pub async fn clear_moltbook_discussion( &self, challenge_name: &ChallengeName, ) -> Result<ChallengeMoltbookDiscussionRecord>
pub async fn publish( &self, input: &PublishChallengeInput<'_>, ) -> Result<PublishChallengeRecord>
pub async fn refresh_seeded( &self, input: &PublishChallengeInput<'_>, ) -> Result<()>
pub async fn archive(&self, challenge_name: &ChallengeName) -> Result<()>
pub async fn add_owner( &self, challenge_name: &ChallengeName, human_id: &HumanId, ) -> Result<()>
pub async fn human_owns( &self, challenge_name: &ChallengeName, human_id: &HumanId, ) -> Result<bool>
pub async fn has_shortlist( &self, challenge_name: &ChallengeName, ) -> Result<bool>
pub async fn agent_is_shortlisted( &self, challenge_name: &ChallengeName, agent_id: &AgentId, ) -> Result<bool>
pub async fn create_shortlist_revision( &self, input: &CreateChallengeShortlistRevisionInput, ) -> Result<ChallengeShortlistRevisionRecord>
pub async fn list_shortlist( &self, challenge_name: &ChallengeName, ) -> Result<ChallengeShortlistRecord>
pub async fn creator_stats( &self, challenge_name: &ChallengeName, target: Option<&TargetName>, ) -> Result<CreatorChallengeStatsRecord>
pub async fn creator_participants( &self, challenge_name: &ChallengeName, target: Option<&TargetName>, ) -> Result<CreatorChallengeParticipantsRecord>
pub async fn list_published( &self, limit: i64, offset: i64, filters: &ChallengeCatalogFilters, ) -> Result<PublishedChallengeList>
pub async fn get_published( &self, challenge_name: &ChallengeName, ) -> Result<Option<ChallengeRecord>>
pub async fn get_published_by_name( &self, challenge_name: &ChallengeName, ) -> Result<Option<ChallengeRecord>>
pub async fn get_public( &self, challenge_name: &ChallengeName, ) -> Result<Option<ChallengeRecord>>
pub async fn ensure_supports_eval_type( &self, challenge_name: &ChallengeName, target: &TargetName, eval_type: ScoringMode, agent_id: &AgentId, ) -> Result<PublishedChallengeAdmission>
Trait Implementations§
Source§impl<'a> Clone for ChallengesRepository<'a>
impl<'a> Clone for ChallengesRepository<'a>
Source§fn clone(&self) -> ChallengesRepository<'a>
fn clone(&self) -> ChallengesRepository<'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 ChallengesRepository<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ChallengesRepository<'a>
impl<'a> !UnwindSafe for ChallengesRepository<'a>
impl<'a> Freeze for ChallengesRepository<'a>
impl<'a> Send for ChallengesRepository<'a>
impl<'a> Sync for ChallengesRepository<'a>
impl<'a> Unpin for ChallengesRepository<'a>
impl<'a> UnsafeUnpin for ChallengesRepository<'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.