pub struct LicensedComponents { /* private fields */ }
Expand description

A collection of licensed components.

Implementations

Obtain an iterator over the components, consuming self.

Iterate over components in this collection.

Add a component to this collection.

Add a component to this collection, but only if it only contains SPDX license identifiers.

Whether a Python module exists in the collection.

Adjusts Python modules in the components set.

Standard library modules that have identical licensing to the Python distribution are removed.

Missing top-level packages are added with an unknown license annotation.

Modules that aren’t top-level modules are removed.

Obtain all SPDX license identifiers referenced by registered components.

Obtain all SPDX license IDs referenced by all components.

Unlike Self::all_spdx_licenses(), this returns just the LicenseId, without exceptions.

Obtain all SPDX license names referenced by registered components.

Obtain a mapping of all SPDX licenses to components having them.

Obtain all components with valid SPDX license expressions.

Obtain components that are missing license annotations.

Obtain components that are licensed to the public domain.

Obtain components that have unknown licensing.

There is a value for the license but that license is not recognized by us.

Components that have copyleft licenses.

There may be false negatives if the component doesn’t have fully SPDX parsed licenses.

Generate a text summary of licesning info.

Generate a text report of noteworthy licensing info.

This essentially emits license quirks that may warrant user attention.

Generate a summary of SPDX licenses in all components.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.