pub enum How {
Perform {
run: Box<Runnable>,
input: Option<String>,
text: Option<String>,
confirm: Option<String>,
feature: Option<String>,
},
View {
view: View,
subject: Option<String>,
},
Command {
argvs: Vec<Vec<String>>,
interactive: bool,
outside: Option<String>,
token: Option<String>,
},
Shell {
why: String,
setting: Option<String>,
},
Words {
why: Option<String>,
},
}Expand description
How an interface takes a line.
Variants§
Perform
speccoder performs it (actions::perform).
Fields
View
A view to open.
Command
A command speccoder printed as a fix and can run for the person, in
the project folder and the OS sandbox (see outside) — never one
composed elsewhere. Several argvs run in order, each only after the last
one succeeded (a && b).
Fields
Shell
It must run in the shell speccoder starts from (export NAME=…):
nothing run elsewhere reaches that shell.
Fields
Words
Words for a person (→ …), or a command only they can complete.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for How
impl<'de> Deserialize<'de> for How
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 How
Source§impl JsonSchema for How
impl JsonSchema for How
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 How
Auto Trait Implementations§
impl Freeze for How
impl RefUnwindSafe for How
impl Send for How
impl Sync for How
impl Unpin for How
impl UnsafeUnpin for How
impl UnwindSafe for How
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