pub struct Cargo { /* private fields */ }Implementations§
Source§impl Cargo
impl Cargo
Sourcepub fn init(
config: Config,
version: Version,
level: LogLevel,
env: HashMap<String, String>,
updated: bool,
dry_run: bool,
) -> Result<Self, Alert>
pub fn init( config: Config, version: Version, level: LogLevel, env: HashMap<String, String>, updated: bool, dry_run: bool, ) -> Result<Self, Alert>
Initialize the plugin with the data from the cli arguments.
Sourcepub fn install(&self) -> Result<(), Alert>
pub fn install(&self) -> Result<(), Alert>
Install cargo-edit to use for bumping the version in Cargo.toml.
Sourcepub fn set_version(&self) -> Result<(), Alert>
pub fn set_version(&self) -> Result<(), Alert>
Run cargo set-version to bump the version in Cargo.toml.
Auto Trait Implementations§
impl Freeze for Cargo
impl RefUnwindSafe for Cargo
impl Send for Cargo
impl Sync for Cargo
impl Unpin for Cargo
impl UnsafeUnpin for Cargo
impl UnwindSafe for Cargo
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