Trait license::License

source ·
pub trait License {
    fn name(&self) -> &str;
    fn id(&self) -> &str;
    fn text(&self) -> &str;
    fn permissions(&self) -> Permissions;
    fn conditions(&self) -> Conditions;
    fn limitations(&self) -> Limitations;
    fn is_osi_approved(&self) -> bool;
    fn is_fsf_free(&self) -> bool;
    fn url(&self) -> &Url;
}
Expand description

Base functionality for all licenses.

Required Methods§

The name of the license.

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

The identifier of the license.

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

The license text.

The permissions of the license.

The conditions of the license.

The limitations of the license.

Says if the license is OSI approved.

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

Says if the license is FSF Free.

Corresponds to the FSF Free/Libre? column from spdx.org/licenses.

The url of the license.

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Converts this type into a shared reference of the (usually inferred) input type.
Converts this type into a shared reference of the (usually inferred) input type.
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Implementors§