#[non_exhaustive]pub struct TableCell {
pub layout: Option<Layout>,
pub row_span: i32,
pub col_span: i32,
pub detected_languages: Vec<DetectedLanguage>,
/* private fields */
}Expand description
A cell representation inside the table.
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>§row_span: i32How many rows this cell spans.
col_span: i32How many columns this cell spans.
detected_languages: Vec<DetectedLanguage>A list of detected languages together with confidence.
Implementations§
Source§impl TableCell
impl TableCell
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_row_span<T: Into<i32>>(self, v: T) -> Self
pub fn set_row_span<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_col_span<T: Into<i32>>(self, v: T) -> Self
pub fn set_col_span<T: Into<i32>>(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 = TableCell::new()
.set_detected_languages([
DetectedLanguage::default()/* use setters */,
DetectedLanguage::default()/* use (different) setters */,
]);Trait Implementations§
impl StructuralPartialEq for TableCell
Auto Trait Implementations§
impl Freeze for TableCell
impl RefUnwindSafe for TableCell
impl Send for TableCell
impl Sync for TableCell
impl Unpin for TableCell
impl UnwindSafe for TableCell
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