pub enum ActionKind {
AutomaticSafeEdit,
PreviewableWorkspaceEdit,
GenerateOwnedArtifact,
RunCargoAllowCommand,
OpenOrNavigate,
RefreshOrReissue,
ChooseBetweenAuthorities,
RequestRepositoryDecision,
PerformExternalAction,
DeferWithTypedReason,
SuppressOrExemptUnderPolicy,
NoSafeActionKnown,
}Expand description
The closed vocabulary of what the next action is. Only deterministic,
non-inventive changes may be ActionApplicability::Automatic.
Variants§
AutomaticSafeEdit
PreviewableWorkspaceEdit
GenerateOwnedArtifact
RunCargoAllowCommand
RefreshOrReissue
ChooseBetweenAuthorities
RequestRepositoryDecision
PerformExternalAction
DeferWithTypedReason
SuppressOrExemptUnderPolicy
NoSafeActionKnown
Implementations§
Source§impl ActionKind
impl ActionKind
pub fn as_str(self) -> &'static str
Sourcepub fn mutates_source(self) -> bool
pub fn mutates_source(self) -> bool
Whether this kind changes source (a text edit, an owned-artifact generate/refresh, or writing a policy exception) versus navigating, deciding, deferring, or invoking an external/command action.
Sourcepub fn may_be_automatic(self) -> bool
pub fn may_be_automatic(self) -> bool
Whether this kind may ever be applied automatically (without review).
The issue permits only deterministic, non-inventive changes to be
automatic: a safe edit, generating an owned artifact, or refreshing one
from unchanged canonical inputs. SuppressOrExemptUnderPolicy is
inventive — it creates an exception — and must never be automatic; a
PreviewableWorkspaceEdit requires confirmation by definition; running a
command or performing an external action is never a silent auto-apply.
Trait Implementations§
Source§impl Clone for ActionKind
impl Clone for ActionKind
Source§fn clone(&self) -> ActionKind
fn clone(&self) -> ActionKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more