pub struct LicenseReport {
pub project_license: String,
pub compatible: Vec<LicenseDependencySummary>,
pub requires_attribution: Vec<LicenseDependencySummary>,
pub copyleft: Vec<LicenseDependencySummary>,
pub needs_review: Vec<LicenseDependencySummary>,
pub incompatible: Vec<LicenseDependencySummary>,
pub unknown: Vec<LicenseDependencySummary>,
}Expand description
License compatibility report
Fields§
§project_license: String§compatible: Vec<LicenseDependencySummary>§requires_attribution: Vec<LicenseDependencySummary>§copyleft: Vec<LicenseDependencySummary>§needs_review: Vec<LicenseDependencySummary>§incompatible: Vec<LicenseDependencySummary>§unknown: Vec<LicenseDependencySummary>Implementations§
Source§impl LicenseReport
impl LicenseReport
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Check if there are any license compatibility issues
Sourcepub fn issue_summary(&self) -> String
pub fn issue_summary(&self) -> String
Get summary of license issues
Sourcepub fn detailed_report(&self) -> String
pub fn detailed_report(&self) -> String
Generate detailed license report
Trait Implementations§
Source§impl Clone for LicenseReport
impl Clone for LicenseReport
Source§fn clone(&self) -> LicenseReport
fn clone(&self) -> LicenseReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LicenseReport
impl RefUnwindSafe for LicenseReport
impl Send for LicenseReport
impl Sync for LicenseReport
impl Unpin for LicenseReport
impl UnwindSafe for LicenseReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more