Struct nextest_metadata::ListCommand
source · pub struct ListCommand { /* private fields */ }
Expand description
Command builder for cargo nextest list
.
Implementations§
source§impl ListCommand
impl ListCommand
sourcepub fn cargo_path(&mut self, path: impl Into<Utf8PathBuf>) -> &mut Self
pub fn cargo_path(&mut self, path: impl Into<Utf8PathBuf>) -> &mut Self
Path to cargo
executable. If not set, this will use the the $CARGO
environment variable, and
if that is not set, will simply be cargo
.
sourcepub fn manifest_path(&mut self, path: impl Into<Utf8PathBuf>) -> &mut Self
pub fn manifest_path(&mut self, path: impl Into<Utf8PathBuf>) -> &mut Self
Path to Cargo.toml
.
sourcepub fn current_dir(&mut self, path: impl Into<Utf8PathBuf>) -> &mut Self
pub fn current_dir(&mut self, path: impl Into<Utf8PathBuf>) -> &mut Self
Current directory of the cargo nextest list
process.
sourcepub fn add_arg(&mut self, arg: impl Into<String>) -> &mut Self
pub fn add_arg(&mut self, arg: impl Into<String>) -> &mut Self
Adds an argument to the end of cargo nextest list
.
sourcepub fn add_args(
&mut self,
args: impl IntoIterator<Item = impl Into<String>>,
) -> &mut Self
pub fn add_args( &mut self, args: impl IntoIterator<Item = impl Into<String>>, ) -> &mut Self
Adds several arguments to the end of cargo nextest list
.
sourcepub fn cargo_command(&self) -> Command
pub fn cargo_command(&self) -> Command
Builds a command for cargo nextest list
. This is the first part of the work of [self.exec
].
sourcepub fn exec(&self) -> Result<TestListSummary, CommandError>
pub fn exec(&self) -> Result<TestListSummary, CommandError>
Executes cargo nextest list
and parses the output into a TestListSummary
.
sourcepub fn exec_binaries_only(&self) -> Result<BinaryListSummary, CommandError>
pub fn exec_binaries_only(&self) -> Result<BinaryListSummary, CommandError>
Executes cargo nextest list --list-type binaries-only
and parses the output into a
BinaryListSummary
.
Trait Implementations§
source§impl Clone for ListCommand
impl Clone for ListCommand
source§fn clone(&self) -> ListCommand
fn clone(&self) -> ListCommand
Returns a copy 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 ListCommand
impl Debug for ListCommand
source§impl Default for ListCommand
impl Default for ListCommand
source§fn default() -> ListCommand
fn default() -> ListCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListCommand
impl RefUnwindSafe for ListCommand
impl Send for ListCommand
impl Sync for ListCommand
impl Unpin for ListCommand
impl UnwindSafe for ListCommand
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)