pub enum PurlField {
PackageType,
Namespace,
Name,
Version,
Subpath,
}Expand description
A specific, fixed field of a PURL.
Variants§
PackageType
The type, also known as the protocol.
For example, “npm” in pkg:npm/my-package.
Namespace
The namespace.
For example, “my.company” in pkg:maven/my.company/my-package.
Name
The name.
For example, “my-package” in pkg:npm/my-package.
Version
The version.
For example, “1.0” in pkg:npm/my-package@1.0.
Subpath
The subpath.
For example, “lib” in pkg:golang/github.com/my-company/my-package#lib.
Implementations§
Trait Implementations§
Source§impl Ord for PurlField
impl Ord for PurlField
Source§impl PartialOrd for PurlField
impl PartialOrd for PurlField
impl Copy for PurlField
impl Eq for PurlField
impl StructuralPartialEq for PurlField
Auto Trait Implementations§
impl Freeze for PurlField
impl RefUnwindSafe for PurlField
impl Send for PurlField
impl Sync for PurlField
impl Unpin for PurlField
impl UnwindSafe for PurlField
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