pub struct Action {
pub group: String,
pub label: String,
pub why: String,
pub command: String,
pub run: Option<Runnable>,
pub blocked: Option<String>,
pub input: Option<String>,
pub confirm: Option<String>,
}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: run the command yourself (it leaves
the machine, or it is not something an interface hosts).
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): what an interface says in a confirmation before it runs it.
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