Trait license::License [] [src]

pub trait License {
    fn name(&self) -> &str;
    fn id(&self) -> &str;
    fn is_osi_approved(&self) -> bool;
    fn text(&self) -> &str;
    fn permissions(&self) -> Permissions;
    fn conditions(&self) -> Conditions;
    fn limitations(&self) -> Limitations;

    fn homepage(&self) -> Option<&str> { ... }
}

Base functionality for all licenses.

Required Methods

The name of the license.

Corresponds to the Full name column from https://spdx.org/licenses/.

The identifier of the license.

Corresponds to the Identifier column from https://spdx.org/licenses/.

Says if the license is OSI approved.

Corresponds to the OSI Approved? column from https://spdx.org/licenses/.

The license text.

The permissions of the license.

The conditions of the license.

The limitations of the license.

Provided Methods

The homepage of the license.

Trait Implementations

impl Display for License
[src]

Formats the value using the given formatter. Read more

impl AsRef<str> for License
[src]

Performs the conversion.

impl AsRef<[u8]> for License
[src]

Performs the conversion.

impl AsRef<OsStr> for License
[src]

Performs the conversion.

impl<'a> License for &'a License
[src]

The name of the license. Read more

The identifier of the license. Read more

Says if the license is OSI approved. Read more

The license text.

The permissions of the license.

The conditions of the license.

The limitations of the license.

The homepage of the license.

Implementors