LicenseInfo
What is known about one license: its SPDX identifier, its name and its family.
Get it with lookup.
Import
Section titled “Import”Cargo feature license (enabled by default). To compile only this module:
or in Cargo.toml:
Definition
Section titled “Definition”Examples
Section titled “Examples”Methods
Section titled “Methods”The SPDX identifier in its canonical case.
Returns
&'static str — For instance "Apache-2.0".
The full name of the license.
Returns
&'static str — For instance "Apache License 2.0".
category
Section titled “category”The family the license belongs to.
Returns
Category — The Category.
