pub struct GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment {
pub end_index: Option<i64>,
pub start_index: Option<i64>,
}Expand description
A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_index: Option<i64>TextSegment half open end UTF-8 char index in the Document.text.
start_index: Option<i64>TextSegment start UTF-8 char index in the Document.text.
Trait Implementations§
Source§impl Clone for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
impl Clone for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
Source§fn clone(&self) -> GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
fn clone(&self) -> GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
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 Default for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
impl Default for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
Source§fn default() -> GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
fn default() -> GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
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 Part for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
Auto Trait Implementations§
impl Freeze for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
impl RefUnwindSafe for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
impl Send for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
impl Sync for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
impl Unpin for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
impl UnwindSafe for GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
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