pub struct Remedy {
pub label: String,
pub effect: String,
pub command: String,
pub undo: Option<String>,
pub history: bool,
pub run: Runnable,
}Expand description
The fix speccoder knows and can apply itself: what it does, the exact command it amounts to, how to take it back. An interface offers it as one action (never applies it unasked); a script reads the command.
Fields§
§label: StringThe action, a verb first (Commit Cargo.lock).
effect: StringWhat it changes, in one line.
command: StringThe same, as a command run in the checkout.
undo: Option<String>How to take it back once applied.
history: boolIt writes git history (a commit): an interface asks first.
run: RunnableHow an interface applies it.
Trait Implementations§
impl Eq for Remedy
Source§impl JsonSchema for Remedy
impl JsonSchema for Remedy
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 Remedy
Auto Trait Implementations§
impl Freeze for Remedy
impl RefUnwindSafe for Remedy
impl Send for Remedy
impl Sync for Remedy
impl Unpin for Remedy
impl UnsafeUnpin for Remedy
impl UnwindSafe for Remedy
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