pub struct CommandContract {
pub command: String,
pub expected_exit_code: i32,
pub expected_files: Vec<String>,
pub forbidden_stderr_patterns: Vec<String>,
pub working_dir: Option<String>,
}Expand description
Contract for command-type tasks (shell commands) Defines expected outcomes for V_boot calculation
Fields§
§command: StringThe shell command to execute
expected_exit_code: i32Expected exit code (default: 0)
expected_files: Vec<String>Files that should exist after command completes
forbidden_stderr_patterns: Vec<String>Patterns that should NOT appear in stderr
working_dir: Option<String>Working directory for the command (relative to project root)
Implementations§
Trait Implementations§
Source§impl Clone for CommandContract
impl Clone for CommandContract
Source§fn clone(&self) -> CommandContract
fn clone(&self) -> CommandContract
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 CommandContract
impl Debug for CommandContract
Source§impl Default for CommandContract
impl Default for CommandContract
Source§fn default() -> CommandContract
fn default() -> CommandContract
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandContract
impl<'de> Deserialize<'de> for CommandContract
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CommandContract
impl Serialize for CommandContract
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CommandContract
impl RefUnwindSafe for CommandContract
impl Send for CommandContract
impl Sync for CommandContract
impl Unpin for CommandContract
impl UnwindSafe for CommandContract
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