pub struct TableDetectionInfo {
pub source: TableSource,
pub confidence: f32,
pub detection_method: Option<String>,
}Expand description
Detection metadata for tables.
Provides additional context about how a table was detected, including confidence scores for heuristic detections.
Fields§
§source: TableSourceSource of this table data.
confidence: f32Confidence score for heuristic detections (0.0 - 1.0).
- StructureTree: always 1.0 (explicit PDF markup)
- SpatialDetection: varies based on detection quality
- UserGenerated: always 1.0 (explicit creation)
detection_method: Option<String>Optional detection method name for debugging.
Implementations§
Source§impl TableDetectionInfo
impl TableDetectionInfo
Sourcepub fn from_structure_tree() -> Self
pub fn from_structure_tree() -> Self
Create info for structure tree source (high confidence).
Sourcepub fn from_spatial_detection(
confidence: f32,
method: impl Into<String>,
) -> Self
pub fn from_spatial_detection( confidence: f32, method: impl Into<String>, ) -> Self
Create info for spatial detection with confidence.
Sourcepub fn user_generated() -> Self
pub fn user_generated() -> Self
Create info for user-generated table.
Trait Implementations§
Source§impl Clone for TableDetectionInfo
impl Clone for TableDetectionInfo
Source§impl Debug for TableDetectionInfo
impl Debug for TableDetectionInfo
Auto Trait Implementations§
impl Freeze for TableDetectionInfo
impl RefUnwindSafe for TableDetectionInfo
impl Send for TableDetectionInfo
impl Sync for TableDetectionInfo
impl Unpin for TableDetectionInfo
impl UnsafeUnpin for TableDetectionInfo
impl UnwindSafe for TableDetectionInfo
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