pub struct BumpOptions {
pub crate_dir: CrateDir,
pub old_version: Version,
pub new_version: Version,
pub dependencies: Vec<CrateDir>,
pub dry: bool,
}Expand description
Options for version bumping.
BumpOptions manages the details necessary for the version bump process for crates.
This includes the directory of the crate whose version is being bumped, the old and new version numbers,
and the set of dependencies of that crate.
Fields§
§crate_dir: CrateDircrate_dir - The directory of the crate which you want to bump the version of. This value is
represented by CrateDir which indicates the directory of the crate.
old_version: Versionold_version - The version of the crate before the bump. It’s represented by Version which
denotes the old version number of the crate.
new_version: Versionnew_version - The version number to assign to the crate after the bump. It’s also represented
by Version which denotes the new version number of the crate.
dependencies: Vec<CrateDir>dependencies - This is a vector containing the directories of all the dependencies of the crate.
Each item in the dependencies vector indicates a CrateDir directory of a single dependency.
dry: booldry - A boolean indicating whether to do a “dry run”. If set to true, a simulated run is performed
without making actual changes. If set to false, the operations are actually executed. This is
useful for validating the process of bumping up the version or for testing and debugging.
Trait Implementations§
Source§impl Clone for BumpOptions
impl Clone for BumpOptions
Source§fn clone(&self) -> BumpOptions
fn clone(&self) -> BumpOptions
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for BumpOptions
impl RefUnwindSafe for BumpOptions
impl Send for BumpOptions
impl Sync for BumpOptions
impl Unpin for BumpOptions
impl UnwindSafe for BumpOptions
Blanket Implementations§
Source§impl<S> AssignWithType for S
impl<S> AssignWithType for S
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
Source§type Val = <C as Collection>::Val
type Val = <C as Collection>::Val
Entry in complex collections.
For example, in a HashMap, while Entry might be a ( key, value ) tuple, Val might only be the value part.Source§fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<Initial, Error, Final> TransitiveTryFrom<Error, Initial> for Final
impl<Initial, Error, Final> TransitiveTryFrom<Error, Initial> for Final
Source§impl<Error, Final, Initial> TransitiveTryInto<Error, Final> for Initial
impl<Error, Final, Initial> TransitiveTryInto<Error, Final> for Initial
Source§impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
Source§fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
Invokes the val_to_entry function of the CollectionValToEntry trait to convert the value to an entry.
Source§type Entry = <C as CollectionValToEntry<Val>>::Entry
type Entry = <C as CollectionValToEntry<Val>>::Entry
Entry is defined by the Collection trait.