Struct askalono::ScanResult
source · [−]pub struct ScanResult<'a> {
pub score: f32,
pub license: Option<IdentifiedLicense<'a>>,
pub containing: Vec<ContainedResult<'a>>,
}
Expand description
Information about scanned content.
Produced by ScanStrategy.scan
.
Fields
score: f32
The confidence of the match from 0.0 to 1.0.
license: Option<IdentifiedLicense<'a>>
The identified license of the overall text, or None if nothing met the confidence threshold.
containing: Vec<ContainedResult<'a>>
Any licenses discovered inside the text, if optimize
was enabled.
Trait Implementations
sourceimpl<'a> Debug for ScanResult<'a>
impl<'a> Debug for ScanResult<'a>
sourceimpl<'a> Serialize for ScanResult<'a>
impl<'a> Serialize for ScanResult<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ScanResult<'a>
impl<'a> Send for ScanResult<'a>
impl<'a> Sync for ScanResult<'a>
impl<'a> Unpin for ScanResult<'a>
impl<'a> UnwindSafe for ScanResult<'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