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
fn name(&self) -> &str
The name of the license.
Corresponds to the Full name column from https://spdx.org/licenses/.
fn id(&self) -> &str
The identifier of the license.
Corresponds to the Identifier column from https://spdx.org/licenses/.
fn is_osi_approved(&self) -> bool
Says if the license is OSI approved.
Corresponds to the OSI Approved? column from https://spdx.org/licenses/.
fn text(&self) -> &str
The license text.
fn permissions(&self) -> Permissions
The permissions of the license.
fn conditions(&self) -> Conditions
The conditions of the license.
fn limitations(&self) -> Limitations
The limitations of the license.
Provided Methods
Trait Implementations
impl Display for License
[src]
impl AsRef<str> for License
[src]
impl AsRef<[u8]> for License
[src]
impl AsRef<OsStr> for License
[src]
impl<'a> License for &'a License
[src]
fn name(&self) -> &str
The name of the license. Read more
fn id(&self) -> &str
The identifier of the license. Read more
fn is_osi_approved(&self) -> bool
Says if the license is OSI approved. Read more
fn text(&self) -> &str
The license text.
fn permissions(&self) -> Permissions
The permissions of the license.
fn conditions(&self) -> Conditions
The conditions of the license.
fn limitations(&self) -> Limitations
The limitations of the license.
fn homepage(&self) -> Option<&str>
The homepage of the license.