pub struct BashResult {
pub output: String,
pub exit_code: Option<i32>,
pub cancelled: bool,
pub truncated: bool,
pub full_output_path: Option<String>,
}Expand description
What a user ! command produced: the bash response data.
Fields§
§output: StringCombined, sanitized output; the tail when truncated.
exit_code: Option<i32>The exit code; absent when cancelled.
cancelled: boolThe command was cancelled.
truncated: boolThe output was truncated.
full_output_path: Option<String>The full output, when it was too long to keep.
Trait Implementations§
Source§impl Clone for BashResult
impl Clone for BashResult
Source§impl Debug for BashResult
impl Debug for BashResult
Source§impl Default for BashResult
impl Default for BashResult
Source§impl<'de> Deserialize<'de> for BashResult
impl<'de> Deserialize<'de> for BashResult
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 BashResult
Source§impl PartialEq for BashResult
impl PartialEq for BashResult
Source§impl Serialize for BashResult
impl Serialize for BashResult
impl StructuralPartialEq for BashResult
Auto Trait Implementations§
impl Freeze for BashResult
impl RefUnwindSafe for BashResult
impl Send for BashResult
impl Sync for BashResult
impl Unpin for BashResult
impl UnsafeUnpin for BashResult
impl UnwindSafe for BashResult
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§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.