pub struct ReviewRequestSummary {
pub display_id: String,
pub forge_kind: ForgeKind,
pub source_branch: String,
pub state: ReviewRequestState,
pub status_summary: Option<String>,
pub target_branch: String,
pub title: String,
pub web_url: String,
}Expand description
Normalized remote summary for one linked review request.
Local session lifecycle transitions such as Rebasing, Done, and
Canceled retain this metadata so the session can continue to reference the
same remote review request. Remote terminal outcomes are stored in
state instead of clearing the link; only an explicit unlink action or
session deletion should remove this metadata.
Fields§
§display_id: StringProvider display id such as GitHub #123.
forge_kind: ForgeKindForge family that owns the linked review request.
source_branch: StringSource branch published for review.
state: ReviewRequestStateLatest normalized remote lifecycle state.
status_summary: Option<String>Provider-specific condensed status text for UI display.
target_branch: StringTarget branch receiving the review request.
title: StringRemote review-request title.
web_url: StringBrowser-openable review-request URL.
Implementations§
Source§impl ReviewRequestSummary
impl ReviewRequestSummary
Sourcepub const GITHUB_BYPASS_READY_STATUS_COMPONENT: &str = "PR ready with bypass"
pub const GITHUB_BYPASS_READY_STATUS_COMPONENT: &str = "PR ready with bypass"
Status-summary component persisted for a GitHub PR whose checks pass and that the viewer may merge by bypassing branch protections: either only an approval is missing, or a conflict-free draft has no unresolved review threads.
Sourcepub const GITHUB_READY_STATUS_COMPONENT: &str = "PR ready"
pub const GITHUB_READY_STATUS_COMPONENT: &str = "PR ready"
Status-summary component persisted for a GitHub PR with a clean merge state at the latest forge refresh.
Sourcepub fn is_github_pr_ready(&self) -> bool
pub fn is_github_pr_ready(&self) -> bool
Returns whether the latest GitHub refresh marked this open PR ready.
Sourcepub fn is_github_pr_bypass_ready(&self) -> bool
pub fn is_github_pr_bypass_ready(&self) -> bool
Returns whether the latest GitHub refresh marked this open PR ready to merge by bypassing branch protections.
Trait Implementations§
Source§impl Clone for ReviewRequestSummary
impl Clone for ReviewRequestSummary
Source§impl Debug for ReviewRequestSummary
impl Debug for ReviewRequestSummary
impl Eq for ReviewRequestSummary
Source§impl PartialEq for ReviewRequestSummary
impl PartialEq for ReviewRequestSummary
impl StructuralPartialEq for ReviewRequestSummary
Auto Trait Implementations§
impl Forget for ReviewRequestSummary
impl Freeze for ReviewRequestSummary
impl Move for ReviewRequestSummary
impl RefUnwindSafe for ReviewRequestSummary
impl Send for ReviewRequestSummary
impl Sync for ReviewRequestSummary
impl Unpin for ReviewRequestSummary
impl UnsafeUnpin for ReviewRequestSummary
impl UnwindSafe for ReviewRequestSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.