pub struct ContentDetection {
pub file_type: FileTypeId,
pub family: ContentFamily,
pub source: DetectionSource,
pub confidence: DetectionConfidence,
pub flags: ClassificationFlags,
}Expand description
Content-derived classification evidence retained separately from name grouping.
Fields§
§file_type: FileTypeIdType suggested by the bounded content probe.
family: ContentFamilyBroad family suggested by the bounded content probe.
source: DetectionSourceEvidence source.
confidence: DetectionConfidenceStrength of the evidence.
flags: ClassificationFlagsOrthogonal generated, vendored, and documentation markers.
Trait Implementations§
Source§impl Clone for ContentDetection
impl Clone for ContentDetection
Source§impl Debug for ContentDetection
impl Debug for ContentDetection
impl Eq for ContentDetection
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 ContentDetection
impl PartialEq for ContentDetection
impl StructuralPartialEq for ContentDetection
Auto Trait Implementations§
impl Freeze for ContentDetection
impl RefUnwindSafe for ContentDetection
impl Send for ContentDetection
impl Sync for ContentDetection
impl Unpin for ContentDetection
impl UnsafeUnpin for ContentDetection
impl UnwindSafe for ContentDetection
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