#[non_exhaustive]pub struct CleanupPlan {
pub targets: Vec<PrData>,
pub truncated: bool,
pub limit: u32,
}Expand description
The set of PRs a batch cleanup would act on, computed before any deletion happens.
Splitting “work out what would be deleted” from “delete it” gives the CLI
a place to insert a confirmation prompt between the two. Nothing in
CleanupService::plan_merged or CleanupService::plan_closed may call
CleanupService::cleanup_single_pr or any function under
crate::git_ops — that is the safety property the whole split exists
to guarantee.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.targets: Vec<PrData>PRs that would be cleaned up.
truncated: boolWhether the underlying PR list was truncated at the platform limit.
When true, more closed PRs exist beyond what this plan covers —
the repository has more than crate::paging::DEFAULT_LIST_LIMIT
closed PRs and only the first page was scanned.
limit: u32The cap that was applied to the underlying closed-PR listing.
This is the limit fetch_capped used when listing closed PRs, not a
limit on targets — targets is filtered down from what the listing
returned (e.g. only the merged subset for --merged), so it can be
smaller than limit even when truncated is false.
Trait Implementations§
Source§impl Clone for CleanupPlan
impl Clone for CleanupPlan
Auto Trait Implementations§
impl Freeze for CleanupPlan
impl RefUnwindSafe for CleanupPlan
impl Send for CleanupPlan
impl Sync for CleanupPlan
impl Unpin for CleanupPlan
impl UnsafeUnpin for CleanupPlan
impl UnwindSafe for CleanupPlan
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<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> ⓘ
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> ⓘ
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