pub struct LicenseChecker { /* private fields */ }Expand description
License compatibility checker
Implementations§
Source§impl LicenseChecker
impl LicenseChecker
Sourcepub fn new(project_license: &str) -> Self
pub fn new(project_license: &str) -> Self
Create a new license checker for the given project license
Sourcepub fn check_compatibility(
&self,
dependency_license: &str,
) -> LicenseCompatibility
pub fn check_compatibility( &self, dependency_license: &str, ) -> LicenseCompatibility
Check compatibility of a dependency license with the project license
Sourcepub fn generate_license_report(
&self,
dependencies: &HashMap<String, DependencyInfo>,
) -> LicenseReport
pub fn generate_license_report( &self, dependencies: &HashMap<String, DependencyInfo>, ) -> LicenseReport
Generate license report for all dependencies
Sourcepub fn generate_attribution_text(
&self,
dependencies: &HashMap<String, DependencyInfo>,
) -> String
pub fn generate_attribution_text( &self, dependencies: &HashMap<String, DependencyInfo>, ) -> String
Generate attribution text for dependencies that require it
Auto Trait Implementations§
impl Freeze for LicenseChecker
impl RefUnwindSafe for LicenseChecker
impl Send for LicenseChecker
impl Sync for LicenseChecker
impl Unpin for LicenseChecker
impl UnwindSafe for LicenseChecker
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> 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