pub struct TestingConfig {
pub auto_test: bool,
pub cmd: String,
pub max_retries: u32,
}Fields§
§auto_test: boolAutomatically run tests after every turn that modifies files.
cmd: StringTest command. Empty string = auto-detect from project type.
max_retries: u32Maximum consecutive test-fix retries before aborting.
Implementations§
Source§impl TestingConfig
impl TestingConfig
Sourcepub fn resolved_cmd(&self, workspace: &Path) -> Option<String>
pub fn resolved_cmd(&self, workspace: &Path) -> Option<String>
Returns the command to run, or None if auto-test is disabled or
no command can be determined (neither configured nor detectable).
Trait Implementations§
Source§impl Clone for TestingConfig
impl Clone for TestingConfig
Source§fn clone(&self) -> TestingConfig
fn clone(&self) -> TestingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TestingConfig
impl Debug for TestingConfig
Source§impl Default for TestingConfig
impl Default for TestingConfig
Source§impl<'de> Deserialize<'de> for TestingConfig
impl<'de> Deserialize<'de> for TestingConfig
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 TestingConfig
impl RefUnwindSafe for TestingConfig
impl Send for TestingConfig
impl Sync for TestingConfig
impl Unpin for TestingConfig
impl UnsafeUnpin for TestingConfig
impl UnwindSafe for TestingConfig
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