pub struct LicenseDetection {
pub license_expression: Option<String>,
pub license_expression_spdx: Option<String>,
pub matches: Vec<LicenseMatch>,
pub detection_log: Vec<String>,
pub identifier: Option<String>,
}Expand description
A LicenseDetection combines one or more LicenseMatch objects using various rules and heuristics.
Fields§
§license_expression: Option<String>A license expression string using SPDX license expression syntax and ScanCode license keys - the effective license expression for this detection.
license_expression_spdx: Option<String>SPDX license expression string with SPDX ids only.
matches: Vec<LicenseMatch>List of license matches combined in this detection.
detection_log: Vec<String>A list of detection log entries explaining how this detection was created.
identifier: Option<String>An identifier unique for a license detection, containing the license expression and a UUID crafted from the match contents.
Trait Implementations§
Source§impl Clone for LicenseDetection
impl Clone for LicenseDetection
Source§fn clone(&self) -> LicenseDetection
fn clone(&self) -> LicenseDetection
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 LicenseDetection
impl RefUnwindSafe for LicenseDetection
impl Send for LicenseDetection
impl Sync for LicenseDetection
impl Unpin for LicenseDetection
impl UnsafeUnpin for LicenseDetection
impl UnwindSafe for LicenseDetection
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