#[non_exhaustive]pub enum ActionKind {
Simple,
Popup {
view: String,
},
SingleChoice(Vec<ChoiceItem>),
Parametrized(FieldKind),
Url(String),
}Expand description
How an action asks for what it needs.
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.
Simple
A button: it just runs.
Popup
Opens a view in a window, and runs on OK.
SingleChoice(Vec<ChoiceItem>)
Offers options, and runs with the one picked.
Parametrized(FieldKind)
Asks for a value, and runs with it.
Url(String)
Opens an address made from the selected record, where {field} takes its value.
Trait Implementations§
Source§impl Clone for ActionKind
impl Clone for ActionKind
Source§fn clone(&self) -> ActionKind
fn clone(&self) -> ActionKind
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 ActionKind
impl Debug for ActionKind
Source§impl PartialEq for ActionKind
impl PartialEq for ActionKind
impl StructuralPartialEq for ActionKind
Auto Trait Implementations§
impl Freeze for ActionKind
impl RefUnwindSafe for ActionKind
impl Send for ActionKind
impl Sync for ActionKind
impl Unpin for ActionKind
impl UnsafeUnpin for ActionKind
impl UnwindSafe for ActionKind
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