#[non_exhaustive]pub struct Table {
pub layout: Option<Layout>,
pub header_rows: Vec<TableRow>,
pub body_rows: Vec<TableRow>,
pub detected_languages: Vec<DetectedLanguage>,
pub provenance: Option<Provenance>,
/* private fields */
}Expand description
A table representation similar to HTML table structure.
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.layout: Option<Layout>§header_rows: Vec<TableRow>Header rows of the table.
body_rows: Vec<TableRow>Body rows of the table.
detected_languages: Vec<DetectedLanguage>A list of detected languages together with confidence.
provenance: Option<Provenance>👎Deprecated
The history of this table.
Implementations§
Source§impl Table
impl Table
pub fn new() -> Self
Sourcepub fn set_layout<T>(self, v: T) -> Self
pub fn set_layout<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_layout<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_layout<T>(self, v: Option<T>) -> Self
Sourcepub fn set_header_rows<T, V>(self, v: T) -> Self
pub fn set_header_rows<T, V>(self, v: T) -> Self
Sets the value of header_rows.
§Example
ⓘ
use google_cloud_documentai_v1::model::document::page::table::TableRow;
let x = Table::new()
.set_header_rows([
TableRow::default()/* use setters */,
TableRow::default()/* use (different) setters */,
]);Sourcepub fn set_body_rows<T, V>(self, v: T) -> Self
pub fn set_body_rows<T, V>(self, v: T) -> Self
Sourcepub fn set_detected_languages<T, V>(self, v: T) -> Self
pub fn set_detected_languages<T, V>(self, v: T) -> Self
Sets the value of detected_languages.
§Example
ⓘ
use google_cloud_documentai_v1::model::document::page::DetectedLanguage;
let x = Table::new()
.set_detected_languages([
DetectedLanguage::default()/* use setters */,
DetectedLanguage::default()/* use (different) setters */,
]);Sourcepub fn set_provenance<T>(self, v: T) -> Selfwhere
T: Into<Provenance>,
👎Deprecated
pub fn set_provenance<T>(self, v: T) -> Selfwhere
T: Into<Provenance>,
Sets the value of provenance.
§Example
ⓘ
use google_cloud_documentai_v1::model::document::Provenance;
let x = Table::new().set_provenance(Provenance::default()/* use setters */);Sourcepub fn set_or_clear_provenance<T>(self, v: Option<T>) -> Selfwhere
T: Into<Provenance>,
👎Deprecated
pub fn set_or_clear_provenance<T>(self, v: Option<T>) -> Selfwhere
T: Into<Provenance>,
Sets or clears the value of provenance.
§Example
ⓘ
use google_cloud_documentai_v1::model::document::Provenance;
let x = Table::new().set_or_clear_provenance(Some(Provenance::default()/* use setters */));
let x = Table::new().set_or_clear_provenance(None::<Provenance>);Trait Implementations§
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 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