pub struct SentimentResult {
pub score: f64,
pub comparative: f64,
pub tokens: Vec<TokenSentiment>,
}Expand description
Result of sentiment analysis.
Fields§
§score: f64Overall sentiment score (-1.0 to 1.0)
comparative: f64Comparative score: total sentiment / token count
tokens: Vec<TokenSentiment>Per-token sentiment breakdown
Trait Implementations§
Source§impl Clone for SentimentResult
impl Clone for SentimentResult
Source§fn clone(&self) -> SentimentResult
fn clone(&self) -> SentimentResult
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 Debug for SentimentResult
impl Debug for SentimentResult
Source§impl PartialEq for SentimentResult
impl PartialEq for SentimentResult
impl StructuralPartialEq for SentimentResult
Auto Trait Implementations§
impl Freeze for SentimentResult
impl RefUnwindSafe for SentimentResult
impl Send for SentimentResult
impl Sync for SentimentResult
impl Unpin for SentimentResult
impl UnsafeUnpin for SentimentResult
impl UnwindSafe for SentimentResult
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