pub enum ActionKind {
Show 43 variants
Skill,
RunTask,
RunFeature,
Converge,
Commit,
Approve,
Reject,
Accept,
Skip,
Nudge,
Done,
Hint,
Rule,
Review,
IssueComment,
QuickChange,
KeepSetAside,
DropSetAside,
FixSetup,
Feature,
PullRequest,
BugFix,
BugConfirm,
BugRun,
BugKeep,
AllowAlways,
WidenPolicy,
DecideBatch,
OracleTests,
ApproveAndRun,
Comment,
CommentsSend,
RevisionUndo,
CodeNudge,
AcceptanceAt,
PresetAdd,
PlanThrough,
NewProject,
UndoNewProject,
CloneRepository,
OpenSample,
SampleChecks,
Command,
}Expand description
What kind of action it is: one per Runnable kind (a run split by
whether it names a task), plus ActionKind::Command for an action an
interface does not run itself. Exhaustive at any one version; a new
kind arrives with its Runnable variant (the adding a kind contract
of speccoder_runtime::actions::perform).
Variants§
Skill
RunTask
Runnable::Run with a task.
RunFeature
Runnable::Run without one: the feature.
Converge
Commit
Approve
Reject
Accept
Skip
Nudge
Done
Hint
Rule
Review
IssueComment
QuickChange
KeepSetAside
DropSetAside
FixSetup
Feature
PullRequest
BugFix
BugConfirm
BugRun
BugKeep
AllowAlways
WidenPolicy
DecideBatch
OracleTests
ApproveAndRun
Comment
CommentsSend
RevisionUndo
CodeNudge
AcceptanceAt
PresetAdd
PlanThrough
NewProject
UndoNewProject
CloneRepository
OpenSample
SampleChecks
Command
No runnable: the person runs the command.
Implementations§
Source§impl ActionKind
impl ActionKind
Sourcepub fn example(self) -> Option<Runnable>
pub fn example(self) -> Option<Runnable>
One runnable of this kind (None for ActionKind::Command): what
tests and documentation enumerate the kinds by.
Trait Implementations§
Source§impl Clone for ActionKind
impl Clone for ActionKind
impl Copy for ActionKind
Source§impl Debug for ActionKind
impl Debug for ActionKind
Source§impl<'de> Deserialize<'de> for ActionKind
impl<'de> Deserialize<'de> for ActionKind
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
impl Eq for ActionKind
Source§impl Hash for ActionKind
impl Hash for ActionKind
Source§impl JsonSchema for ActionKind
impl JsonSchema for ActionKind
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 moreSource§impl Ord for ActionKind
impl Ord for ActionKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ActionKind
impl PartialEq for ActionKind
Source§impl PartialOrd for ActionKind
impl PartialOrd for ActionKind
Source§impl Serialize for ActionKind
impl Serialize 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