pub struct Action {
pub group: String,
pub label: String,
pub why: String,
pub command: String,
pub run: Option<Runnable>,
pub step: Option<How>,
pub blocked: Option<String>,
pub input: Option<String>,
pub confirm: Option<String>,
pub id: ActionId,
pub role: Option<SkillRole>,
}Expand description
One thing a person can do now.
Fields§
§group: Stringnext, plan, work, task, feature or review.
label: StringWhat it does, in a few words.
why: StringWhy, or what follows (shown beside it).
command: StringThe equivalent command; "…" marks the input.
run: Option<Runnable>How an interface runs it; None: see step.
step: Option<How>How an interface takes it when it does not run it (run is None):
a view it opens, the person’s own command, a line for their shell.
blocked: Option<String>Why it cannot run now; None: it can.
input: Option<String>What to ask for before it runs (Describe the feature).
confirm: Option<String>It leaves the machine (a push, a pull request) or cannot be undone (a discard): what an interface says in a confirmation before it runs it.
id: ActionIdWhat it is, independent of its wording (identity).
role: Option<SkillRole>A planning skill’s part in its format’s planning; None for
everything else.
Implementations§
Trait Implementations§
impl Eq for Action
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(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 moreimpl 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 UnsafeUnpin 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