use License;
use permissions::*;
use conditions::*;
use limitations::*;
#[derive(Clone, Copy, Debug, Default, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub struct Mpl2;
impl License for Mpl2 {
#[inline]
fn name(&self) -> &str {
"Mozilla Public License 2.0"
}
#[inline]
fn id(&self) -> &str {
"MPL-2.0"
}
#[inline]
fn is_osi_approved(&self) -> bool {
true
}
#[inline]
fn text(&self) -> &str {
include_str!("../files/MPL-2")
}
#[inline]
fn permissions(&self) -> Permissions {
COMMERCIAL_USE | DISTRIBUTION | MODIFICATION | PATENT_RIGHTS | PRIVATE_USE
}
#[inline]
fn conditions(&self) -> Conditions {
DISCLOSE_SOURCES | LICENSE_AND_COPYRIGHT_NOTICE | SAME_LICENSE
}
#[inline]
fn limitations(&self) -> Limitations {
NO_LIABILITY | NO_TRADEMARK_RIGHTS | NO_WARRANTY
}
#[inline]
fn homepage(&self) -> Option<&str> {
Some("https://www.mozilla.org/en-US/MPL/2.0/")
}
}
impl_license!(Mpl2);