pub struct Candidate {
pub kind: BlobKind,
pub score: Confidence,
pub summary: String,
pub citation: &'static str,
pub inner: Option<Box<DecodedChain>>,
}Expand description
One scored, cited candidate reading of a blob. A wrapper candidate nests the
identification of its decoded payload in Candidate::inner, so a
base64 → gzip → binary-plist blob reports the whole chain.
Fields§
§kind: BlobKindThe identified (or unidentified) kind.
score: ConfidenceHow strongly the evidence supports this reading.
summary: StringA human summary of what was found (root type, byte counts, decoded
text prefix, or — for BlobKind::Unknown — the raw head bytes).
citation: &'static strThe authoritative spec citation for Candidate::kind.
inner: Option<Box<DecodedChain>>For a wrapper kind, the identification of the decoded/decompressed
payload — the next link in the chain. None for a leaf reading, a failed
decode, or when the recursion depth cap was reached.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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