#[non_exhaustive]pub struct TextClassificationPredictionInstance {
pub content: String,
pub mime_type: String,
/* private fields */
}Expand description
Prediction input format for Text Classification.
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
Implementations§
Source§impl TextClassificationPredictionInstance
impl TextClassificationPredictionInstance
Trait Implementations§
Source§impl Clone for TextClassificationPredictionInstance
impl Clone for TextClassificationPredictionInstance
Source§fn clone(&self) -> TextClassificationPredictionInstance
fn clone(&self) -> TextClassificationPredictionInstance
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 TextClassificationPredictionInstance
impl Default for TextClassificationPredictionInstance
Source§fn default() -> TextClassificationPredictionInstance
fn default() -> TextClassificationPredictionInstance
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextClassificationPredictionInstance
impl PartialEq for TextClassificationPredictionInstance
Source§fn eq(&self, other: &TextClassificationPredictionInstance) -> bool
fn eq(&self, other: &TextClassificationPredictionInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextClassificationPredictionInstance
Auto Trait Implementations§
impl Freeze for TextClassificationPredictionInstance
impl RefUnwindSafe for TextClassificationPredictionInstance
impl Send for TextClassificationPredictionInstance
impl Sync for TextClassificationPredictionInstance
impl Unpin for TextClassificationPredictionInstance
impl UnwindSafe for TextClassificationPredictionInstance
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