pub struct DisabledAction {
pub name: String,
pub reason: String,
}Expand description
A custom action whose button shows disabled, as the record’s state refuses it.
Fields§
§name: StringThe action’s NAME.
reason: StringWhy the button is disabled, as the action’s disabled_reason words it.
Trait Implementations§
Source§impl Clone for DisabledAction
impl Clone for DisabledAction
Source§impl Debug for DisabledAction
impl Debug for DisabledAction
impl Eq for DisabledAction
Source§impl PartialEq for DisabledAction
impl PartialEq for DisabledAction
impl StructuralPartialEq for DisabledAction
Auto Trait Implementations§
impl Forget for DisabledAction
impl Freeze for DisabledAction
impl Move for DisabledAction
impl RefUnwindSafe for DisabledAction
impl Send for DisabledAction
impl Sync for DisabledAction
impl Unpin for DisabledAction
impl UnsafeUnpin for DisabledAction
impl UnwindSafe for DisabledAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.