pub struct StackSubmissionStatus {
pub stack_name: String,
pub total_entries: usize,
pub submitted_entries: usize,
pub open_prs: usize,
pub merged_prs: usize,
pub declined_prs: usize,
pub pull_requests: Vec<PullRequest>,
pub enhanced_statuses: Vec<PullRequestStatus>,
}Expand description
Status of stack submission with enhanced mergability information
Fields§
§stack_name: String§total_entries: usize§submitted_entries: usize§open_prs: usize§merged_prs: usize§declined_prs: usize§pull_requests: Vec<PullRequest>§enhanced_statuses: Vec<PullRequestStatus>Implementations§
Source§impl StackSubmissionStatus
impl StackSubmissionStatus
Sourcepub fn completion_percentage(&self) -> f64
pub fn completion_percentage(&self) -> f64
Calculate completion percentage (merged PRs / submitted PRs)
Measures completion of submitted work, not total stack entries.
This changed from total_entries to submitted_entries as divisor
to provide a more accurate measure of review progress.
Sourcepub fn all_submitted(&self) -> bool
pub fn all_submitted(&self) -> bool
Check if all entries are submitted
Sourcepub fn all_merged(&self) -> bool
pub fn all_merged(&self) -> bool
Check if all PRs are merged
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StackSubmissionStatus
impl RefUnwindSafe for StackSubmissionStatus
impl Send for StackSubmissionStatus
impl Sync for StackSubmissionStatus
impl Unpin for StackSubmissionStatus
impl UnwindSafe for StackSubmissionStatus
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> 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 more