pub enum VersionStrategy {
Latest,
Pinned {
requirement: SemverReq,
},
Lts,
Custom(String),
Fixed {
version: String,
},
Range {
range: String,
},
Channel {
channel: String,
},
CustomTagged {
value: String,
},
}Expand description
Strategy used to resolve versions.
Variants§
Latest
Always track the latest version.
Pinned
Use a pinned semantic version requirement (legacy shape).
Lts
Track a long-term support channel (legacy shape).
Custom(String)
Custom strategy identified by name (legacy shape).
Fixed
Always track the latest published version for this component.
Range
A semver-style range (e.g. “>=1.2,<2.0”).
Channel
A named channel (e.g. “stable”, “beta”, “canary”).
CustomTagged
Forward-compatible escape hatch for unknown strategies.
Trait Implementations§
Source§impl Clone for VersionStrategy
impl Clone for VersionStrategy
Source§fn clone(&self) -> VersionStrategy
fn clone(&self) -> VersionStrategy
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VersionStrategy
impl Debug for VersionStrategy
Source§impl<'de> Deserialize<'de> for VersionStrategy
Available on crate feature serde only.
impl<'de> Deserialize<'de> for VersionStrategy
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for VersionStrategy
impl Hash for VersionStrategy
Source§impl PartialEq for VersionStrategy
impl PartialEq for VersionStrategy
Source§impl Serialize for VersionStrategy
Available on crate feature serde only.
impl Serialize for VersionStrategy
Available on crate feature
serde only.impl Eq for VersionStrategy
impl StructuralPartialEq for VersionStrategy
Auto Trait Implementations§
impl Freeze for VersionStrategy
impl RefUnwindSafe for VersionStrategy
impl Send for VersionStrategy
impl Sync for VersionStrategy
impl Unpin for VersionStrategy
impl UnwindSafe for VersionStrategy
Blanket Implementations§
§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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.