pub struct Detection {
pub format: FormatId,
pub confidence: Confidence,
pub reason: Cow<'static, str>,
pub encoding: Option<&'static str>,
}Fields§
§format: FormatId§confidence: Confidence§reason: Cow<'static, str>Why it was chosen. Printed by --explain; not decoration, but the only way to
debug a wrong guess without instrumenting the binary.
encoding: Option<&'static str>Name of the detected encoding, when one was determined.
Implementations§
Trait Implementations§
impl Eq for Detection
impl StructuralPartialEq for Detection
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin for Detection
impl UnsafeUnpin for Detection
impl UnwindSafe for Detection
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