pub struct App {
pub mode: CleanupMode,
pub remote: String,
pub group_name: String,
pub group_description: String,
pub step_index: usize,
pub step_count: usize,
pub branches: Vec<Branch>,
pub selected: usize,
pub screen: AppScreen,
pub modal: Option<Modal>,
}Fields§
§mode: CleanupMode§remote: String§group_name: String§group_description: String§step_index: usize§step_count: usize§branches: Vec<Branch>§selected: usize§screen: AppScreen§modal: Option<Modal>Implementations§
Source§impl App
impl App
pub fn from_group( group: CleanupGroup, remote: impl Into<String>, step_index: usize, step_count: usize, ) -> Self
pub fn is_empty(&self) -> bool
pub fn next(&mut self)
pub fn previous(&mut self)
pub fn toggle_delete(&mut self)
pub fn toggle_save(&mut self)
pub fn mark_all_delete(&mut self)
pub fn unmark_all(&mut self)
pub fn delete_candidates(&self) -> Vec<&Branch>
pub fn deletable_branches(&self) -> Vec<&Branch>
pub fn delete_count(&self) -> usize
pub fn saved_branch_names(&self) -> Vec<String>
pub fn dismiss_modal(&mut self)
pub fn in_triage(&self) -> bool
pub fn review_items(&self) -> Option<&[CommandPlanItem]>
pub fn review_requires_explicit_choice(&self) -> bool
pub fn execution_items(&self) -> Option<&[CommandPlanItem]>
pub fn execution_failure(&self) -> Option<&ExecutionFailure>
pub fn execution_running_index(&self) -> Option<usize>
pub fn execution_spinner_frame(&self) -> usize
pub fn enter_review(&mut self) -> bool
pub fn exit_review(&mut self)
pub fn require_review_confirmation(&mut self)
pub fn begin_execution(&mut self)
pub fn next_pending_execution_index(&self) -> Option<usize>
pub fn execution_branch(&self, index: usize) -> Option<&Branch>
pub fn mark_execution_result(&mut self, index: usize, success: bool)
pub fn mark_execution_skipped_from(&mut self, start: usize)
pub fn set_execution_failure(&mut self, index: usize, output: impl Into<String>)
pub fn start_execution(&mut self, index: usize)
pub fn advance_execution_spinner(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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