pub struct VersionSet {
pub package: String,
pub constraint: Option<(Relation, Version)>,
}
Expand description
Describes a set of versions of a package.
Fields§
§package: String
The name of the package.
constraint: Option<(Relation, Version)>
The constraint fulfilled by the versions in the version set. If None
, the version set
contains all the versions of the given package.
Trait Implementations§
Source§impl Debug for VersionSet
impl Debug for VersionSet
Source§impl<'de> Deserialize<'de> for VersionSet
impl<'de> Deserialize<'de> for VersionSet
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 VersionSet
impl Display for VersionSet
Source§impl FromStr for VersionSet
impl FromStr for VersionSet
Source§impl PartialEq for VersionSet
impl PartialEq for VersionSet
Source§impl Serialize for VersionSet
impl Serialize for VersionSet
Source§impl TryFrom<&str> for VersionSet
impl TryFrom<&str> for VersionSet
Source§impl TryFrom<String> for VersionSet
impl TryFrom<String> for VersionSet
impl Eq for VersionSet
impl StructuralPartialEq for VersionSet
Auto Trait Implementations§
impl Freeze for VersionSet
impl RefUnwindSafe for VersionSet
impl Send for VersionSet
impl Sync for VersionSet
impl Unpin for VersionSet
impl UnwindSafe for VersionSet
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