use super::Category;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct LicenseInfo {
id: &'static str,
name: &'static str,
category: Category,
}
impl LicenseInfo {
pub(crate) fn new(id: &'static str, name: &'static str, category: Category) -> Self {
Self { id, name, category }
}
#[must_use]
pub fn id(&self) -> &'static str {
self.id
}
#[must_use]
pub fn name(&self) -> &'static str {
self.name
}
#[must_use]
pub fn category(&self) -> Category {
self.category
}
}
#[cfg(test)]
#[path = "license_info.test.rs"]
mod tests;