pub enum VersionLock {
None,
Major,
Minor,
}
Expand description
should upgrades be locked to a specific major/minor/patch level only
Variants§
None
do not lock the version when considering upgrades
Major
lock the version to the current major version (i.e. only consider minor versions and patch levels)
Minor
lock the version to the current minor version (i.e. only consider patch levels)
Trait Implementations§
Source§impl Clone for VersionLock
impl Clone for VersionLock
Source§fn clone(&self) -> VersionLock
fn clone(&self) -> VersionLock
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 VersionLock
impl Debug for VersionLock
Source§impl Default for VersionLock
impl Default for VersionLock
Source§fn default() -> VersionLock
fn default() -> VersionLock
Returns the “default value” for a type. Read more
Source§impl Display for VersionLock
impl Display for VersionLock
Source§impl ValueEnum for VersionLock
impl ValueEnum for VersionLock
Auto Trait Implementations§
impl Freeze for VersionLock
impl RefUnwindSafe for VersionLock
impl Send for VersionLock
impl Sync for VersionLock
impl Unpin for VersionLock
impl UnwindSafe for VersionLock
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