pub struct Table {
pub identifier: String,
pub headers: Vec<Vec<TableCell>>,
pub rows: Vec<Vec<TableCell>>,
pub confidence_score: f64,
}Expand description
Table structured content.
Tables extracted from article content with headers and rows. Tables are stored at the article root level and referenced from sections.
§Example
ⓘ
Table {
identifier: "demographics_table1".to_string(),
headers: vec![vec![
TableCell { value: "Year".to_string() },
TableCell { value: "Pop.".to_string() },
]],
rows: vec![
vec![
TableCell { value: "1666".to_string() },
TableCell { value: "625".to_string() },
],
],
confidence_score: 0.9,
}Fields§
§identifier: StringTable identifier (unique within article)
headers: Vec<Vec<TableCell>>Table headers (array of arrays for multi-row headers)
rows: Vec<Vec<TableCell>>Table rows (array of arrays of cells)
confidence_score: f64Confidence score (parser confidence)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Table
impl<'de> Deserialize<'de> for Table
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
impl StructuralPartialEq for Table
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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