use License;
use permissions::*;
use conditions::*;
use limitations::*;
#[derive(Clone, Copy, Debug, Default, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub struct Cc01;
impl License for Cc01 {
#[inline]
fn name(&self) -> &str {
"Creative Commons Zero v1.0 Universal"
}
#[inline]
fn id(&self) -> &str {
"CC0-1.0"
}
#[inline]
fn is_osi_approved(&self) -> bool {
false
}
#[inline]
fn text(&self) -> &str {
include_str!("../files/CC0-1")
}
#[inline]
fn permissions(&self) -> Permissions {
COMMERCIAL_USE | DISTRIBUTION | MODIFICATION | PRIVATE_USE
}
#[inline]
fn conditions(&self) -> Conditions {
Conditions::empty()
}
#[inline]
fn limitations(&self) -> Limitations {
NO_LIABILITY | NO_PATENT_RIGHTS | NO_TRADEMARK_RIGHTS | NO_WARRANTY
}
#[inline]
fn homepage(&self) -> Option<&str> {
Some("http://creativecommons.org/publicdomain/zero/1.0/")
}
}
impl_license!(Cc01);