pub struct ProdReviewFacade(pub Weak<Workspace>);Expand description
Production impl over a Weak<Workspace> (the same cycle-breaking shape
crate::mcp::peers::facade::ProdWorkspaceFacade uses).
Tuple Fields§
§0: Weak<Workspace>Implementations§
Trait Implementations§
Source§impl ReviewFacade for ProdReviewFacade
impl ReviewFacade for ProdReviewFacade
Source§fn branches_with_reviews(&self, scope: &ReviewScope) -> Vec<String>
fn branches_with_reviews(&self, scope: &ReviewScope) -> Vec<String>
A failure here can only degrade a diagnostic, so it warns and
reports none rather than failing the review__list that already
succeeded.
Source§fn resolve_scope<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 SessionSlot,
scope: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<ReviewScope, ScopeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve_scope<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
caller: &'life1 SessionSlot,
scope: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<ReviewScope, ScopeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolve the caller to its review scope, or the step that failed.
scope overrides the branch: an explicit scope (a document’s, from
a hand-off) needs no checkout, so the git step is skipped and only
the caller’s project still has to resolve.Source§fn list(&self, scope: &ReviewScope) -> Result<Vec<ReviewSummary>, String>
fn list(&self, scope: &ReviewScope) -> Result<Vec<ReviewSummary>, String>
review__list rows for the scope’s branch, newest review first.Source§fn get(
&self,
scope: &ReviewScope,
review_id: &str,
) -> Result<Option<ReviewDetail>, String>
fn get( &self, scope: &ReviewScope, review_id: &str, ) -> Result<Option<ReviewDetail>, String>
review__get detail for one review, or None when it isn’t on the
scope’s branch.Source§fn reply(
&self,
scope: &ReviewScope,
comment_id: &str,
text: &str,
at: &str,
) -> Result<CommentAnchorView, String>
fn reply( &self, scope: &ReviewScope, comment_id: &str, text: &str, at: &str, ) -> Result<CommentAnchorView, String>
Append a reply to
comment_id; returns the comment’s anchor and
the status after the append. Err when comment_id isn’t in this
scope.Source§fn resolve(
&self,
scope: &ReviewScope,
comment_id: &str,
) -> Result<CommentAnchorView, String>
fn resolve( &self, scope: &ReviewScope, comment_id: &str, ) -> Result<CommentAnchorView, String>
Mark
comment_id Resolved; returns the comment’s anchor and its
new status. Err when it isn’t in this scope.Auto Trait Implementations§
impl !RefUnwindSafe for ProdReviewFacade
impl !UnwindSafe for ProdReviewFacade
impl Freeze for ProdReviewFacade
impl Send for ProdReviewFacade
impl Sync for ProdReviewFacade
impl Unpin for ProdReviewFacade
impl UnsafeUnpin for ProdReviewFacade
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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