Struct google_language1_beta1::api::Sentence
source · pub struct Sentence {
pub sentiment: Option<Sentiment>,
pub text: Option<TextSpan>,
}
Expand description
Represents a sentence in the input document.
This type is not used in any activity, and only used as part of another schema.
Fields§
§sentiment: Option<Sentiment>
For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence.
text: Option<TextSpan>
The sentence text.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sentence
impl<'de> Deserialize<'de> for Sentence
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 Sentence
Auto Trait Implementations§
impl RefUnwindSafe for Sentence
impl Send for Sentence
impl Sync for Sentence
impl Unpin for Sentence
impl UnwindSafe for Sentence
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