#[non_exhaustive]pub struct LayoutTableBlock {
pub header_rows: Vec<LayoutTableRow>,
pub body_rows: Vec<LayoutTableRow>,
pub caption: String,
/* private fields */
}Expand description
Represents a table type block.
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.header_rows: Vec<LayoutTableRow>Header rows at the top of the table.
body_rows: Vec<LayoutTableRow>Body rows containing main table content.
caption: StringTable caption/title.
Implementations§
Source§impl LayoutTableBlock
impl LayoutTableBlock
pub fn new() -> 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::document_layout::document_layout_block::LayoutTableRow;
let x = LayoutTableBlock::new()
.set_header_rows([
LayoutTableRow::default()/* use setters */,
LayoutTableRow::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
Trait Implementations§
Source§impl Clone for LayoutTableBlock
impl Clone for LayoutTableBlock
Source§fn clone(&self) -> LayoutTableBlock
fn clone(&self) -> LayoutTableBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 LayoutTableBlock
impl Debug for LayoutTableBlock
Source§impl Default for LayoutTableBlock
impl Default for LayoutTableBlock
Source§fn default() -> LayoutTableBlock
fn default() -> LayoutTableBlock
Returns the “default value” for a type. Read more
Source§impl Message for LayoutTableBlock
impl Message for LayoutTableBlock
Source§impl PartialEq for LayoutTableBlock
impl PartialEq for LayoutTableBlock
impl StructuralPartialEq for LayoutTableBlock
Auto Trait Implementations§
impl Freeze for LayoutTableBlock
impl RefUnwindSafe for LayoutTableBlock
impl Send for LayoutTableBlock
impl Sync for LayoutTableBlock
impl Unpin for LayoutTableBlock
impl UnwindSafe for LayoutTableBlock
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