pub struct Classification {
pub file_type: FileTypeId,
pub family: ContentFamily,
pub source: DetectionSource,
pub confidence: DetectionConfidence,
pub flags: ClassificationFlags,
}Expand description
Result of the cheapest-first file-type cascade.
Fields§
§file_type: FileTypeIdStable known id or unknown:.ext for an unrecognized extension.
family: ContentFamilyBroad analyzer family.
source: DetectionSourceRule tier that produced this result.
confidence: DetectionConfidenceStrength of the evidence used.
flags: ClassificationFlagsOrthogonal origin and purpose attributes.
Trait Implementations§
Source§impl Clone for Classification
impl Clone for Classification
Source§impl Debug for Classification
impl Debug for Classification
impl Eq for Classification
Source§impl From<Classification> for ContentDetection
impl From<Classification> for ContentDetection
Source§fn from(value: Classification) -> Self
fn from(value: Classification) -> Self
Converts to this type from the input type.
Source§impl From<ContentDetection> for Classification
impl From<ContentDetection> for Classification
Source§fn from(value: ContentDetection) -> Self
fn from(value: ContentDetection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Classification
impl PartialEq for Classification
impl StructuralPartialEq for Classification
Auto Trait Implementations§
impl Freeze for Classification
impl RefUnwindSafe for Classification
impl Send for Classification
impl Sync for Classification
impl Unpin for Classification
impl UnsafeUnpin for Classification
impl UnwindSafe for Classification
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