Struct packageurl::PackageUrl[][src]

pub struct PackageUrl<'a> {
    pub ty: Cow<'a, str>,
    pub namespace: Option<Cow<'a, str>>,
    pub name: Cow<'a, str>,
    pub version: Option<Cow<'a, str>>,
    pub qualifiers: HashMap<Cow<'a, str>, Cow<'a, str>>,
    pub subpath: Option<Cow<'a, str>>,
}

A Package URL.

Fields

The package URL type.

The optional namespace

The package name.

The optional package version.

The package qualifiers.

The package subpath.

Methods

impl<'a> PackageUrl<'a>
[src]

Create a new Package URL with the provided type and name.

Assign a namespace to the package.

Assign a version to the package.

Assign a subpath to the package.

Add a qualifier to the package.

Trait Implementations

impl<'a> Debug for PackageUrl<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Clone for PackageUrl<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FromStr for PackageUrl<'static>
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl<'a> ToString for PackageUrl<'a>
[src]

Converts the given value to a String. Read more

Auto Trait Implementations

impl<'a> Send for PackageUrl<'a>

impl<'a> Sync for PackageUrl<'a>