#[non_exhaustive]pub struct DetectionReport {
pub format: InputFormat,
pub items_path: String,
pub score_path: Option<String>,
pub preset: Option<String>,
pub fallback_reason: Option<String>,
}Expand description
Provenance for auto-detection decisions (§4.6).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: InputFormatDetected (or supplied) input format.
items_path: StringItems path used to extract records from the input.
score_path: Option<String>Score path, when one was detected or supplied.
preset: Option<String>Preset name, when an explicit --preset was applied.
fallback_reason: Option<String>Reason auto-detection fell back to a default, when applicable.
Trait Implementations§
Source§impl Clone for DetectionReport
impl Clone for DetectionReport
Source§fn clone(&self) -> DetectionReport
fn clone(&self) -> DetectionReport
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 DetectionReport
impl Debug for DetectionReport
Source§impl Default for DetectionReport
impl Default for DetectionReport
Source§fn default() -> DetectionReport
fn default() -> DetectionReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DetectionReport
impl<'de> Deserialize<'de> for DetectionReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DetectionReport
impl PartialEq for DetectionReport
Source§impl Serialize for DetectionReport
impl Serialize for DetectionReport
impl StructuralPartialEq for DetectionReport
Auto Trait Implementations§
impl Freeze for DetectionReport
impl RefUnwindSafe for DetectionReport
impl Send for DetectionReport
impl Sync for DetectionReport
impl Unpin for DetectionReport
impl UnsafeUnpin for DetectionReport
impl UnwindSafe for DetectionReport
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