pub struct IdentifiedLicense<'a> {
pub name: &'a str,
pub kind: LicenseType,
pub data: &'a TextData,
}
Expand description
A struct describing a license that was identified, as well as its type.
Fields§
§name: &'a str
The identifier of the license.
kind: LicenseType
The type of the license that was matched.
data: &'a TextData
A reference to the license data inside the store.
Trait Implementations§
Source§impl<'a> Clone for IdentifiedLicense<'a>
impl<'a> Clone for IdentifiedLicense<'a>
Source§fn clone(&self) -> IdentifiedLicense<'a>
fn clone(&self) -> IdentifiedLicense<'a>
Returns a copy 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 moreSource§impl<'a> Debug for IdentifiedLicense<'a>
impl<'a> Debug for IdentifiedLicense<'a>
Auto Trait Implementations§
impl<'a> Freeze for IdentifiedLicense<'a>
impl<'a> RefUnwindSafe for IdentifiedLicense<'a>
impl<'a> Send for IdentifiedLicense<'a>
impl<'a> Sync for IdentifiedLicense<'a>
impl<'a> Unpin for IdentifiedLicense<'a>
impl<'a> UnwindSafe for IdentifiedLicense<'a>
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