use License;
use permissions::*;
use conditions::*;
use limitations::*;
#[derive(Clone, Copy, Debug, Default, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub struct Lgpl3;
impl License for Lgpl3 {
#[inline]
fn name(&self) -> &str {
"GNU General Public License v3.0 only"
}
#[inline]
fn id(&self) -> &str {
"GPL-3.0"
}
#[inline]
fn is_osi_approved(&self) -> bool {
true
}
#[inline]
fn text(&self) -> &str {
include_str!("../files/LGPL-3")
}
#[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 | DOCUMENT_CHANGES
}
#[inline]
fn limitations(&self) -> Limitations {
NO_LIABILITY | NO_WARRANTY
}
#[inline]
fn homepage(&self) -> Option<&str> {
Some("http://www.gnu.org/licenses/lgpl-3.0")
}
}
impl_license!(Lgpl3);