akuna-infer 0.1.0

Magika file-type detection with Burn
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, Clone, PartialEq)]
pub struct RankedAlternative {
    pub label: String,
    pub mime_type: Option<String>,
    pub confidence: f32,
}

#[derive(Debug, Clone, PartialEq)]
pub struct Detection {
    pub label: String,
    pub mime_type: Option<String>,
    pub confidence: f32,
    pub alternatives: Vec<RankedAlternative>,
}