pub struct EditableCommand {
pub command: String,
pub cwd: String,
pub exit_code: Option<i32>,
pub duration_ms: Option<u64>,
}Expand description
Editable representation of a single command.
Uses String for cwd instead of PathBuf for TOML friendliness.
Fields§
§command: StringThe command text
cwd: StringWorking directory (as string for TOML)
exit_code: Option<i32>Exit code (None if command was still running)
duration_ms: Option<u64>Duration in milliseconds
Trait Implementations§
Source§impl Clone for EditableCommand
impl Clone for EditableCommand
Source§fn clone(&self) -> EditableCommand
fn clone(&self) -> EditableCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditableCommand
impl Debug for EditableCommand
Source§impl<'de> Deserialize<'de> for EditableCommand
impl<'de> Deserialize<'de> for EditableCommand
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
Auto Trait Implementations§
impl Freeze for EditableCommand
impl RefUnwindSafe for EditableCommand
impl Send for EditableCommand
impl Sync for EditableCommand
impl Unpin for EditableCommand
impl UnwindSafe for EditableCommand
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