pub struct ExecMisuseReport {
pub misuse: bool,
pub reason_code: Option<String>,
pub original_argv: Vec<String>,
pub suggestion: Option<String>,
pub parsed_command: Vec<String>,
}Expand description
The result of checking rch exec argv for quoted-command misuse.
Fields§
§misuse: boolWhether the argv is the single-quoted-command misuse shape.
reason_code: Option<String>Stable reason code, present only on misuse.
original_argv: Vec<String>The original argv after exec, echoed for diagnostics.
suggestion: Option<String>The suggested corrected command line, present only on misuse.
parsed_command: Vec<String>Best-effort whitespace split of the quoted command (present on misuse).
Trait Implementations§
Source§impl Clone for ExecMisuseReport
impl Clone for ExecMisuseReport
Source§impl Debug for ExecMisuseReport
impl Debug for ExecMisuseReport
Source§impl<'de> Deserialize<'de> for ExecMisuseReport
impl<'de> Deserialize<'de> for ExecMisuseReport
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 ExecMisuseReport
Source§impl PartialEq for ExecMisuseReport
impl PartialEq for ExecMisuseReport
Source§impl Serialize for ExecMisuseReport
impl Serialize for ExecMisuseReport
impl StructuralPartialEq for ExecMisuseReport
Auto Trait Implementations§
impl Freeze for ExecMisuseReport
impl RefUnwindSafe for ExecMisuseReport
impl Send for ExecMisuseReport
impl Sync for ExecMisuseReport
impl Unpin for ExecMisuseReport
impl UnsafeUnpin for ExecMisuseReport
impl UnwindSafe for ExecMisuseReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.