pub struct ChallengeReviewRecordsRepository<'a> { /* private fields */ }Implementations§
Source§impl ChallengeReviewRecordsRepository<'_>
impl ChallengeReviewRecordsRepository<'_>
pub async fn create( &self, input: &CreateChallengeReviewRecordInput, audit_event: &CreateChallengeReviewRecordAuditEventInput, ) -> Result<ChallengeReviewRecordRecord>
pub async fn get( &self, review_record_id: &ChallengeReviewRecordId, ) -> Result<Option<ChallengeReviewRecordRecord>>
pub async fn list(&self, limit: i64) -> Result<Vec<ChallengeReviewRecordRecord>>
pub async fn list_private_asset_states( &self, review_record_id: &ChallengeReviewRecordId, ) -> Result<Vec<AdminChallengePrivateAssetRecord>>
pub async fn reserve_private_asset( &self, input: &CreateChallengePrivateAssetInput, max_bytes_per_review_record: u64, validation_timeout_minutes: i32, pending_timeout_minutes: i32, ) -> Result<ChallengePrivateAssetRecord>
pub async fn activate_private_asset_with_audit( &self, asset_row_id: &ChallengePrivateAssetId, audit_event_id: ChallengeReviewAuditEventId, uploader_human_id: &HumanId, ) -> Result<ChallengePrivateAssetRecord>
pub async fn activate_private_asset( &self, asset_row_id: &ChallengePrivateAssetId, ) -> Result<ChallengePrivateAssetRecord>
pub async fn fail_private_asset( &self, asset_row_id: &ChallengePrivateAssetId, message: &str, ) -> Result<()>
pub async fn private_asset_storage_key_has_active_reference( &self, storage_key: &StorageKey, ) -> Result<bool>
pub async fn begin_validation( &self, input: &BeginChallengeReviewRecordValidationInput, window_seconds: i64, validation_limit: i64, validation_timeout_minutes: i32, ) -> Result<ChallengeReviewValidationRecord>
pub async fn finish_validation( &self, input: &FinishChallengeReviewRecordValidationInput, audit_event: &CreateChallengeReviewRecordAuditEventInput, ) -> Result<ChallengeReviewValidationRecord>
pub async fn abandon_with_audit( &self, review_record_id: &ChallengeReviewRecordId, message: Option<&str>, audit_event: &CreateChallengeReviewRecordAuditEventInput, ) -> Result<()>
pub async fn abandon_stale(&self, ttl_days: i64) -> Result<i64>
pub async fn list_unpublished_private_assets_for_purge( &self, grace_days: i64, ) -> Result<Vec<ChallengePrivateAssetPurgeRecord>>
pub async fn delete_private_asset( &self, asset_row_id: &ChallengePrivateAssetId, ) -> Result<()>
pub async fn mark_private_asset_purging( &self, asset_row_id: &ChallengePrivateAssetId, ) -> Result<Option<ChallengePrivateAssetPurgeRecord>>
pub async fn approve_validated_with_audit( &self, review_record_id: &ChallengeReviewRecordId, expected_validation_bundle_sha256: &Sha256Digest, message: Option<&str>, audit_event: &CreateChallengeReviewRecordAuditEventInput, ) -> Result<()>
pub async fn update_status_with_audit( &self, review_record_id: &ChallengeReviewRecordId, status: ChallengeReviewRecordStatus, message: Option<&str>, audit_event: &CreateChallengeReviewRecordAuditEventInput, ) -> Result<()>
pub async fn claim_for_publish( &self, review_record_id: &ChallengeReviewRecordId, publish_timeout_minutes: i32, ) -> Result<ClaimedChallengeReviewRecordForPublish>
pub async fn fail_publish( &self, review_record_id: &ChallengeReviewRecordId, publish_claim_id: &ChallengeReviewPublishClaimId, message: &str, ) -> Result<()>
pub async fn publish_archive( &self, input: &PublishArchiveChallengeReviewRecordInput, ) -> Result<()>
pub async fn publish_new( &self, input: &PublishNewChallengeReviewRecordInput, ) -> Result<()>
pub async fn mark_published( &self, review_record_id: &ChallengeReviewRecordId, publish_claim_id: &ChallengeReviewPublishClaimId, published_challenge_name: Option<&ChallengeName>, ) -> Result<()>
Trait Implementations§
Source§impl<'a> Clone for ChallengeReviewRecordsRepository<'a>
impl<'a> Clone for ChallengeReviewRecordsRepository<'a>
Source§fn clone(&self) -> ChallengeReviewRecordsRepository<'a>
fn clone(&self) -> ChallengeReviewRecordsRepository<'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 ChallengeReviewRecordsRepository<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ChallengeReviewRecordsRepository<'a>
impl<'a> !UnwindSafe for ChallengeReviewRecordsRepository<'a>
impl<'a> Freeze for ChallengeReviewRecordsRepository<'a>
impl<'a> Send for ChallengeReviewRecordsRepository<'a>
impl<'a> Sync for ChallengeReviewRecordsRepository<'a>
impl<'a> Unpin for ChallengeReviewRecordsRepository<'a>
impl<'a> UnsafeUnpin for ChallengeReviewRecordsRepository<'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.