pub enum Action {
Show 37 variants
Back,
BackOrQuit,
CopyUnstyledOutput,
DismissTop,
DismissTopItem,
DismissTopItemType,
Export(String),
FocusFile(FocusFileCommand),
FocusGoto,
FocusSearch,
Help,
Job(JobRef),
NextMatch,
NoOp,
OpenJobsMenu,
OpenMenu(Box<ActionMenuDefinition>),
OpenUndismissMenu,
Pause,
PlaySound(PlaySoundCommand),
PreviousMatch,
Quit,
ReRun,
Refresh,
ReloadConfig,
ScopeToFailures,
Scroll(ScrollCommand),
ShowItem(ShowItemCommand),
ToggleBacktrace(&'static str),
TogglePause,
ToggleRawOutput,
ToggleSummary,
ToggleWrap,
UndismissAll,
UndismissDiagType(String),
UndismissLocation(String),
Unpause,
Validate,
}Expand description
An action that can be executed in the system, eg mapped to a key or sent from another program.
Variants§
Back
BackOrQuit
CopyUnstyledOutput
DismissTop
DismissTopItem
DismissTopItemType
Export(String)
FocusFile(FocusFileCommand)
FocusGoto
FocusSearch
Help
Job(JobRef)
NextMatch
NoOp
OpenJobsMenu
OpenMenu(Box<ActionMenuDefinition>)
OpenUndismissMenu
Pause
PlaySound(PlaySoundCommand)
PreviousMatch
Quit
ReRun
Refresh
ReloadConfig
ScopeToFailures
Scroll(ScrollCommand)
ShowItem(ShowItemCommand)
ToggleBacktrace(&'static str)
TogglePause
ToggleRawOutput
ToggleSummary
ToggleWrap
UndismissAll
UndismissDiagType(String)
UndismissLocation(String)
Unpause
Validate
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Action
impl JsonSchema for Action
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IQ for Twhere
T: Serialize,
impl<T> IQ for Twhere
T: Serialize,
Source§fn extract_primitive<P>(&self, path: P) -> Option<String>where
P: IqPath,
fn extract_primitive<P>(&self, path: P) -> Option<String>where
P: IqPath,
Extract a “primitive” value (including strings, simple enum variants, etc)
as a string using the Display implementation of the deep value.
Source§fn extract_json_pretty<P>(&self, path: P) -> Option<String>where
P: IqPath,
fn extract_json_pretty<P>(&self, path: P) -> Option<String>where
P: IqPath,
Extract a value as JSON, pretty
Source§fn extract_value<P, V>(&self, path: P) -> Result<Option<V>, IqError>where
P: IqPath,
V: DeserializeOwned,
fn extract_value<P, V>(&self, path: P) -> Result<Option<V>, IqError>where
P: IqPath,
V: DeserializeOwned,
Extract a value in a type which must implement
Deserialize, from a value, at
the given path. Read more