pub struct ActionInvocation {
pub kind: ActionKind,
pub inputs: Vec<Input>,
pub options: Vec<Input>,
pub extra_flags: Vec<String>,
}Expand description
Data passed to an action handle method after command parsing.
Fields§
§kind: ActionKind§inputs: Vec<Input>§options: Vec<Input>§extra_flags: Vec<String>Implementations§
Source§impl ActionInvocation
impl ActionInvocation
pub fn new(kind: ActionKind) -> Self
pub fn for_command(command: CommandName) -> Self
Trait Implementations§
Source§impl Clone for ActionInvocation
impl Clone for ActionInvocation
Source§fn clone(&self) -> ActionInvocation
fn clone(&self) -> ActionInvocation
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 ActionInvocation
impl Debug for ActionInvocation
Source§impl PartialEq for ActionInvocation
impl PartialEq for ActionInvocation
Source§fn eq(&self, other: &ActionInvocation) -> bool
fn eq(&self, other: &ActionInvocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ActionInvocation
impl StructuralPartialEq for ActionInvocation
Auto Trait Implementations§
impl Freeze for ActionInvocation
impl RefUnwindSafe for ActionInvocation
impl Send for ActionInvocation
impl Sync for ActionInvocation
impl Unpin for ActionInvocation
impl UnsafeUnpin for ActionInvocation
impl UnwindSafe for ActionInvocation
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§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.