#![no_std]
#![doc(html_root_url = "https://docs.rs/license")]
#![deny(missing_docs)]
#[allow(bad_style)]
mod exceptions;
mod ext;
#[allow(bad_style)]
mod licenses;
pub use exceptions::*;
pub use ext::*;
pub use licenses::*;
pub trait License {
fn name(&self) -> &'static str;
fn id(&self) -> &'static str;
fn text(&self) -> &'static str;
fn header(&self) -> Option<&'static str>;
fn is_osi_approved(&self) -> bool;
fn is_fsf_libre(&self) -> bool;
fn is_deprecated(&self) -> bool;
fn see_also(&self) -> &'static [&'static str];
}
pub trait LicenseExt: License {
fn permissions(&self) -> Permissions;
fn conditions(&self) -> Conditions;
fn limitations(&self) -> Limitations;
}
pub trait LicenseException {
fn name(&self) -> &'static str;
fn id(&self) -> &'static str;
fn text(&self) -> &'static str;
fn is_deprecated(&self) -> bool;
fn comments(&self) -> Option<&'static str>;
fn see_also(&self) -> &'static [&'static str];
}