pub struct PrecognitiveContent {
pub prediction: String,
pub confidence: f64,
pub basis: Vec<String>,
}Expand description
Predictive/precognitive message content.
Fields§
§prediction: StringThe prediction text.
confidence: f64Confidence score: 0.0 to 1.0.
basis: Vec<String>Evidence or reasoning basis for the prediction.
Trait Implementations§
Source§impl Clone for PrecognitiveContent
impl Clone for PrecognitiveContent
Source§fn clone(&self) -> PrecognitiveContent
fn clone(&self) -> PrecognitiveContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PrecognitiveContent
impl Debug for PrecognitiveContent
Source§impl<'de> Deserialize<'de> for PrecognitiveContent
impl<'de> Deserialize<'de> for PrecognitiveContent
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
Source§impl PartialEq for PrecognitiveContent
impl PartialEq for PrecognitiveContent
Source§impl Serialize for PrecognitiveContent
impl Serialize for PrecognitiveContent
impl StructuralPartialEq for PrecognitiveContent
Auto Trait Implementations§
impl Freeze for PrecognitiveContent
impl RefUnwindSafe for PrecognitiveContent
impl Send for PrecognitiveContent
impl Sync for PrecognitiveContent
impl Unpin for PrecognitiveContent
impl UnsafeUnpin for PrecognitiveContent
impl UnwindSafe for PrecognitiveContent
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