Struct cargo::ops::cargo_remove::RemoveOptions
source · pub struct RemoveOptions<'a> {
pub config: &'a Config,
pub spec: &'a Package,
pub dependencies: Vec<String>,
pub section: DepTable,
pub dry_run: bool,
}
Expand description
Remove a dependency from a Cargo.toml manifest file.
Fields§
§config: &'a Config
Configuration information for Cargo operations
spec: &'a Package
Package to remove dependencies from
dependencies: Vec<String>
Dependencies to remove
section: DepTable
Which dependency section to remove these from
dry_run: bool
Whether or not to actually write the manifest
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RemoveOptions<'a>
impl<'a> !Send for RemoveOptions<'a>
impl<'a> !Sync for RemoveOptions<'a>
impl<'a> Unpin for RemoveOptions<'a>
impl<'a> !UnwindSafe for RemoveOptions<'a>
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