pub struct PackageSpec {
pub package: PackageRef,
pub version: Option<Version>,
}Expand description
A package spec combines a PackageRef with an optional version.
Fields§
§package: PackageRef§version: Option<Version>Trait Implementations§
Source§impl Clone for PackageSpec
impl Clone for PackageSpec
Source§fn clone(&self) -> PackageSpec
fn clone(&self) -> PackageSpec
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 PackageSpec
impl Debug for PackageSpec
Auto Trait Implementations§
impl Freeze for PackageSpec
impl RefUnwindSafe for PackageSpec
impl Send for PackageSpec
impl Sync for PackageSpec
impl Unpin for PackageSpec
impl UnwindSafe for PackageSpec
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