pub struct Dependency {
pub first: VersionSet,
pub alternates: Vec<VersionSet>,
}
Expand description
Specifies a dependency of a package that can be fulfilled by one or more VersionSet
s.
Fields§
§first: VersionSet
The first VersionSet
that can fulfill this Dependency
.
alternates: Vec<VersionSet>
The other VersionSet
s that can fulfill this Dependency
.
Trait Implementations§
Source§impl Debug for Dependency
impl Debug for Dependency
Source§impl<'de> Deserialize<'de> for Dependency
impl<'de> Deserialize<'de> for Dependency
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Dependency
impl Display for Dependency
Source§impl FromStr for Dependency
impl FromStr for Dependency
Source§impl PartialEq for Dependency
impl PartialEq for Dependency
Source§impl Serialize for Dependency
impl Serialize for Dependency
Source§impl TryFrom<&str> for Dependency
impl TryFrom<&str> for Dependency
Source§impl TryFrom<String> for Dependency
impl TryFrom<String> for Dependency
impl Eq for Dependency
impl StructuralPartialEq for Dependency
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
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