pub struct TextClassificationResult {
pub label: String,
pub score: f64,
}Expand description
Represents a single text classification result.
Fields§
§label: StringThe classification label assigned to the text (e.g., 'POSITIVE' or 'NEGATIVE').
score: f64Confidence score indicating the likelihood of the label.
Trait Implementations§
Source§impl Clone for TextClassificationResult
impl Clone for TextClassificationResult
Source§fn clone(&self) -> TextClassificationResult
fn clone(&self) -> TextClassificationResult
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 TextClassificationResult
impl Debug for TextClassificationResult
Source§impl<'de> Deserialize<'de> for TextClassificationResult
impl<'de> Deserialize<'de> for TextClassificationResult
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
Auto Trait Implementations§
impl Freeze for TextClassificationResult
impl RefUnwindSafe for TextClassificationResult
impl Send for TextClassificationResult
impl Sync for TextClassificationResult
impl Unpin for TextClassificationResult
impl UnwindSafe for TextClassificationResult
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