Struct askalono::IdentifiedLicense
source · [−]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
sourceimpl<'a> Clone for IdentifiedLicense<'a>
impl<'a> Clone for IdentifiedLicense<'a>
sourcefn clone(&self) -> IdentifiedLicense<'a>
fn clone(&self) -> IdentifiedLicense<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for IdentifiedLicense<'a>
impl<'a> Debug for IdentifiedLicense<'a>
sourceimpl<'a> Serialize for IdentifiedLicense<'a>
impl<'a> Serialize for IdentifiedLicense<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more