pub struct ActionFeedback {
pub action: String,
pub reason: String,
pub remedy: String,
pub status: Option<String>,
}Expand description
Why an advertised TUI action could not run, and what would make it possible.
The pair travels together so a refusal cannot regress into a bare “nothing happened” or a reason with no next step. The active mode renders both lines.
Fields§
§action: StringThe action named in the user’s own vocabulary.
reason: StringWhy this action cannot run in the current state.
remedy: StringWhat the user can do to make the action possible.
status: Option<String>The legacy plain-status spelling some surfaces still consume. The
two-line notice always uses reason and remedy.
Trait Implementations§
Source§impl Clone for ActionFeedback
impl Clone for ActionFeedback
Source§impl Debug for ActionFeedback
impl Debug for ActionFeedback
impl Eq for ActionFeedback
Source§impl PartialEq for ActionFeedback
impl PartialEq for ActionFeedback
impl StructuralPartialEq for ActionFeedback
Auto Trait Implementations§
impl Freeze for ActionFeedback
impl RefUnwindSafe for ActionFeedback
impl Send for ActionFeedback
impl Sync for ActionFeedback
impl Unpin for ActionFeedback
impl UnsafeUnpin for ActionFeedback
impl UnwindSafe for ActionFeedback
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