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