pub enum BulkState {
Selecting,
Preview(Box<BatchPlan>),
Confirming(Box<BatchPlan>),
Done(Box<ApplyReport>, String),
Refused(String),
NeedsInput(&'static str),
}Expand description
Where the modal is in its own cycle.
Variants§
Selecting
Choosing issues.
Preview(Box<BatchPlan>)
A plan is built and shown. Cancelling here changes nothing — it never has.
Confirming(Box<BatchPlan>)
The plan is shown and awaiting an explicit confirm. Separate from
Preview so the modal can render a different affordance, and so “I saw it” and
“I approved it” are two different states in the record rather than one.
Done(Box<ApplyReport>, String)
The batch ran. Per-item outcomes are in the report.
Refused(String)
The batch was refused before or during the apply.
NeedsInput(&'static str)
An action needs something the user has not given (a pair’s target).
Trait Implementations§
impl Eq for BulkState
impl StructuralPartialEq for BulkState
Auto Trait Implementations§
impl Freeze for BulkState
impl RefUnwindSafe for BulkState
impl Send for BulkState
impl Sync for BulkState
impl Unpin for BulkState
impl UnsafeUnpin for BulkState
impl UnwindSafe for BulkState
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