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§
sourcefn name(&self) -> &str
fn name(&self) -> &str
The name of the license.
Corresponds to the Full name column from spdx.org/licenses.
sourcefn id(&self) -> &str
fn id(&self) -> &str
The identifier of the license.
Corresponds to the Identifier column from spdx.org/licenses.
sourcefn permissions(&self) -> Permissions
fn permissions(&self) -> Permissions
The permissions of the license.
sourcefn conditions(&self) -> Conditions
fn conditions(&self) -> Conditions
The conditions of the license.
sourcefn limitations(&self) -> Limitations
fn limitations(&self) -> Limitations
The limitations of the license.
sourcefn is_osi_approved(&self) -> bool
fn is_osi_approved(&self) -> bool
Says if the license is OSI approved.
Corresponds to the OSI Approved? column from spdx.org/licenses.
sourcefn is_fsf_free(&self) -> bool
fn is_fsf_free(&self) -> bool
Says if the license is FSF Free.
Corresponds to the FSF Free/Libre? column from spdx.org/licenses.