pub enum ActionInput<'a> {
Immediate(Option<&'a Arc<EncodedAction>>),
Deferred {
type_id: &'a str,
},
Prompted {
prompt: &'a str,
placeholder: &'a str,
collects: Collects,
},
}Expand description
How the palette collects an ActionSpec’s input when it is chosen.
A view of the action’s type: the encoding itself comes from the spec
(ActionSpec::encode_immediate, ActionSpec::build_deferred,
ActionSpec::build_text), which binds the type to the spec’s target.
Variants§
Immediate(Option<&'a Arc<EncodedAction>>)
Fires at once, with no argument. Holds the encoding made when the
action was declared, the same for every invocation; None for one
encoded per invocation from its target
(ActionSpec::encode_immediate), which a caller holding the
resource tree resolves by address when it fires, as a deferred one.
Deferred
A no-argument operation built only at final admitted owner execution. Enumeration and confirmation retain declared intent, not minted bytes.
Prompted
Collects one free-text argument first, then builds its encoded action.
Trait Implementations§
Source§impl<'a> Clone for ActionInput<'a>
impl<'a> Clone for ActionInput<'a>
impl<'a> Copy for ActionInput<'a>
Source§impl<'a> Debug for ActionInput<'a>
impl<'a> Debug for ActionInput<'a>
impl<'a> Eq for ActionInput<'a>
Source§impl<'a> PartialEq for ActionInput<'a>
impl<'a> PartialEq for ActionInput<'a>
impl<'a> StructuralPartialEq for ActionInput<'a>
Auto Trait Implementations§
impl<'a> Forget for ActionInput<'a>
impl<'a> Freeze for ActionInput<'a>
impl<'a> Move for ActionInput<'a>
impl<'a> RefUnwindSafe for ActionInput<'a>
impl<'a> Send for ActionInput<'a>
impl<'a> Sync for ActionInput<'a>
impl<'a> Unpin for ActionInput<'a>
impl<'a> UnsafeUnpin for ActionInput<'a>
impl<'a> UnwindSafe for ActionInput<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more