pub enum ModalState {
Editing,
NeedsInput(String),
Preview(Box<TriagePlan>),
Confirming(Box<TriagePlan>),
Done(String),
Refused(String),
}Expand description
Where the modal is in its own cycle. The #173 batch modal’s shape, because “I saw it” and “I approved it” are two decisions here too.
Variants§
Editing
The fields, ready to edit.
NeedsInput(String)
The modal asked for something it cannot plan without.
Preview(Box<TriagePlan>)
A plan is on screen. Nothing has been written.
Confirming(Box<TriagePlan>)
The plan is armed: one more y writes.
Done(String)
The apply ran. Its per-item outcomes and counts are in the string.
Refused(String)
The plan or the apply was refused. Its reasons are in the string.
Trait Implementations§
Source§impl Clone for ModalState
impl Clone for ModalState
Source§impl Debug for ModalState
impl Debug for ModalState
impl Eq for ModalState
Source§impl PartialEq for ModalState
impl PartialEq for ModalState
impl StructuralPartialEq for ModalState
Auto Trait Implementations§
impl Freeze for ModalState
impl RefUnwindSafe for ModalState
impl Send for ModalState
impl Sync for ModalState
impl Unpin for ModalState
impl UnsafeUnpin for ModalState
impl UnwindSafe for ModalState
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<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
Compare self to
key and return true if they are equal.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