#[non_exhaustive]pub struct TextExtractionPredictionInstance {
pub content: String,
pub mime_type: String,
pub key: String,
/* private fields */
}Expand description
Prediction input format for Text Extraction.
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.content: StringThe text snippet to make the predictions on.
mime_type: StringThe MIME type of the text snippet. The supported MIME types are listed below.
- text/plain
key: StringThis field is only used for batch prediction. If a key is provided, the batch prediction result will by mapped to this key. If omitted, then the batch prediction result will contain the entire input instance. Vertex AI will not check if keys in the request are duplicates, so it is up to the caller to ensure the keys are unique.
Implementations§
Source§impl TextExtractionPredictionInstance
impl TextExtractionPredictionInstance
pub fn new() -> Self
Sourcepub fn set_content<T: Into<String>>(self, v: T) -> Self
pub fn set_content<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
pub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TextExtractionPredictionInstance
impl Clone for TextExtractionPredictionInstance
Source§fn clone(&self) -> TextExtractionPredictionInstance
fn clone(&self) -> TextExtractionPredictionInstance
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 TextExtractionPredictionInstance
impl Default for TextExtractionPredictionInstance
Source§fn default() -> TextExtractionPredictionInstance
fn default() -> TextExtractionPredictionInstance
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextExtractionPredictionInstance
impl PartialEq for TextExtractionPredictionInstance
Source§fn eq(&self, other: &TextExtractionPredictionInstance) -> bool
fn eq(&self, other: &TextExtractionPredictionInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextExtractionPredictionInstance
Auto Trait Implementations§
impl Freeze for TextExtractionPredictionInstance
impl RefUnwindSafe for TextExtractionPredictionInstance
impl Send for TextExtractionPredictionInstance
impl Sync for TextExtractionPredictionInstance
impl Unpin for TextExtractionPredictionInstance
impl UnwindSafe for TextExtractionPredictionInstance
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