Skip to main content

ReviewRepository

Trait ReviewRepository 

Source
pub trait ReviewRepository: Send + Sync {
    // Required methods
    fn bind_session_review_comment_resolutions_to_commit<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        resolutions: &'life2 [NewSessionReviewCommentResolution],
        commit_hash: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn discard_session_review_comment_resolutions<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        resolutions: &'life2 [NewSessionReviewCommentResolution],
    ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn insert_session_review_comment_resolutions<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        resolutions: &'life2 [NewSessionReviewCommentResolution],
    ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn load_session_review_comment_resolutions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SessionReviewCommentResolutionRow>, DbError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn load_session_review_request<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<SessionReviewRequestRow>, DbError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn update_session_review_request<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        review_request: Option<ReviewRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn mark_session_review_comment_resolution_posting<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        reply_token: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn remove_session_review_comment_resolution<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        reply_token: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Review-request persistence boundary used by app orchestration and tests.

Required Methods§

Source

fn bind_session_review_comment_resolutions_to_commit<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, id: &'life1 str, resolutions: &'life2 [NewSessionReviewCommentResolution], commit_hash: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Binds newly inserted operations to the commit produced for their turn.

Source

fn discard_session_review_comment_resolutions<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, resolutions: &'life2 [NewSessionReviewCommentResolution], ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Discards unfinished operations created with the supplied reply tokens.

Source

fn insert_session_review_comment_resolutions<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, resolutions: &'life2 [NewSessionReviewCommentResolution], ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Inserts one atomic set of review-comment resolution operations.

A bound operation for the same thread wins. A fresh agent turn may replace an unbound operation left by interrupted commit binding.

Source

fn load_session_review_comment_resolutions<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<SessionReviewCommentResolutionRow>, DbError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Loads unfinished review-comment resolution operations for a session.

Source

fn load_session_review_request<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<SessionReviewRequestRow>, DbError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Loads the persisted forge review-request linkage for a session.

Source

fn update_session_review_request<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, review_request: Option<ReviewRequest>, ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Updates the persisted forge review-request linkage for a session.

Source

fn mark_session_review_comment_resolution_posting<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, reply_token: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Records that one operation is about to attempt its forge reply.

Source

fn remove_session_review_comment_resolution<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, reply_token: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<(), DbError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Removes one operation after its requested forge effects finish.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§