#[non_exhaustive]pub enum ActionCategory {
New,
Edit,
Save,
Filter,
Navigation,
View,
Export,
Custom(String),
InForm(String),
}Expand description
Where an action belongs, which decides the place it shows in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
New
Creating records.
Edit
Changing records.
Save
Saving and canceling.
Filter
Filtering and searching.
Moving between records and views.
View
How the view shows things.
Export
Taking data out.
Custom(String)
Anything else, with its name.
InForm(String)
On a form, inside its layout and not above it, in the place with this name that its entity
asks for with EntityInfo::form_actions.
Trait Implementations§
Source§impl Clone for ActionCategory
impl Clone for ActionCategory
Source§fn clone(&self) -> ActionCategory
fn clone(&self) -> ActionCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionCategory
impl Debug for ActionCategory
Source§impl Default for ActionCategory
impl Default for ActionCategory
Source§fn default() -> ActionCategory
fn default() -> ActionCategory
Returns the “default value” for a type. Read more
impl Eq for ActionCategory
Source§impl PartialEq for ActionCategory
impl PartialEq for ActionCategory
impl StructuralPartialEq for ActionCategory
Auto Trait Implementations§
impl Freeze for ActionCategory
impl RefUnwindSafe for ActionCategory
impl Send for ActionCategory
impl Sync for ActionCategory
impl Unpin for ActionCategory
impl UnsafeUnpin for ActionCategory
impl UnwindSafe for ActionCategory
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