pub struct RegistryPackage {
pub name: Option<PackageRef>,
pub version: VersionReq,
pub registry: Option<String>,
}Expand description
Represents a reference to a registry package.
Fields§
§name: Option<PackageRef>The name of the package.
If not specified, the name from the mapping will be used.
version: VersionReqThe version requirement of the package.
registry: Option<String>The name of the component registry containing the package.
If not specified, the default registry is used.
Trait Implementations§
Source§impl Clone for RegistryPackage
impl Clone for RegistryPackage
Source§fn clone(&self) -> RegistryPackage
fn clone(&self) -> RegistryPackage
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 RegistryPackage
impl Debug for RegistryPackage
Auto Trait Implementations§
impl Freeze for RegistryPackage
impl RefUnwindSafe for RegistryPackage
impl Send for RegistryPackage
impl Sync for RegistryPackage
impl Unpin for RegistryPackage
impl UnsafeUnpin for RegistryPackage
impl UnwindSafe for RegistryPackage
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