pub struct Interpretation {
pub text: String,
pub kind: String,
pub lossy: bool,
pub confidence: f32,
}Expand description
A consumer-supplied decoding of an opaque BLOB value. The observation of what
the bytes are, never a guarantee — lossy records when the
decode dropped or substituted data.
Fields§
§text: StringThe decoded, human-readable form of the value.
kind: StringA short label for the reading (e.g. utf-16, bplist, gzip).
lossy: boolWhether the decode was lossy (an unpaired surrogate, a truncated payload, bytes substituted with U+FFFD). Structural, so a consumer cannot present a lossy decode as faithful.
confidence: f32Heuristic confidence in (0.0, 1.0] that this reading is correct.
Trait Implementations§
Source§impl Clone for Interpretation
impl Clone for Interpretation
Source§fn clone(&self) -> Interpretation
fn clone(&self) -> Interpretation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Interpretation
impl Debug for Interpretation
Source§impl PartialEq for Interpretation
impl PartialEq for Interpretation
impl StructuralPartialEq for Interpretation
Auto Trait Implementations§
impl Freeze for Interpretation
impl RefUnwindSafe for Interpretation
impl Send for Interpretation
impl Sync for Interpretation
impl Unpin for Interpretation
impl UnsafeUnpin for Interpretation
impl UnwindSafe for Interpretation
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