pub struct Dependency {
pub registry: RegistryOrigin,
pub name: PackageName,
pub requirement: Requirement,
}Expand description
One registry-qualified dependency constraint.
Fields§
§registry: RegistryOriginRegistry from which candidates must be selected.
name: PackageNamePackage name constrained by this dependency.
requirement: RequirementSupported version requirement for the package.
Implementations§
Source§impl Dependency
impl Dependency
Sourcepub fn new(
registry: RegistryOrigin,
name: PackageName,
requirement: Requirement,
) -> Self
pub fn new( registry: RegistryOrigin, name: PackageName, requirement: Requirement, ) -> Self
Creates a registry-qualified dependency constraint.
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§fn clone(&self) -> Dependency
fn clone(&self) -> Dependency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Dependency
impl Debug for Dependency
impl Eq for Dependency
Source§impl PartialEq for Dependency
impl PartialEq 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 UnsafeUnpin 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