Trait license::License [] [src]

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

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

Trait implemented by 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<'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.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

Implementors