Trait Build
Source pub trait Build {
// Required method
fn build(self) -> Result<Command, EnvError>;
}
Expand description
Trait for building a command without executing it.
All git command builders implement this trait, allowing you to
access the underlying cmd_proc::Command for custom execution.
§Example
ⓘuse git_proc::Build;
git_proc::fetch::new()
.all()
.build()
.stderr_null()
.status()
.await?;
Build the command without executing it.
§Errors
Returns EnvError if git’s repository-local environment variables
could not be resolved (see EnvPolicy::ClearLocal).
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".