pub struct UndoLabel {
pub subject: &'static str,
pub action: &'static str,
}Expand description
A stable, machine-readable name for what a command did.
Deliberately not a localized string. This crate is generated and knows
nothing about locales or about the application’s translation catalogue, so
it hands back a key — ("binder_item", "remove") — and the application
turns that into “Undo deleting a scene” in the reader’s language.
Fields§
§subject: &'static strWhat was acted on: an entity name, or a feature use case’s own name.
action: &'static strWhat was done to it — "create", "update", "remove", … Empty when
subject already names the whole act (a feature use case such as
"trash_binder_items" is not an action on something else).
Implementations§
Trait Implementations§
impl Copy for UndoLabel
impl Eq for UndoLabel
impl StructuralPartialEq for UndoLabel
Auto Trait Implementations§
impl Freeze for UndoLabel
impl RefUnwindSafe for UndoLabel
impl Send for UndoLabel
impl Sync for UndoLabel
impl Unpin for UndoLabel
impl UnsafeUnpin for UndoLabel
impl UnwindSafe for UndoLabel
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