pub struct RawPrediction {
pub kind: Option<String>,
pub label: Option<String>,
pub text: Option<String>,
pub score: Option<f32>,
pub attributes: BTreeMap<String, String>,
}Expand description
Backend-neutral raw model prediction used for runtime conformance checks.
Fields§
§kind: Option<String>Optional prediction kind.
label: Option<String>Optional label.
text: Option<String>Optional text payload.
score: Option<f32>Optional confidence score.
attributes: BTreeMap<String, String>Arbitrary model attributes.
Implementations§
Trait Implementations§
Source§impl Clone for RawPrediction
impl Clone for RawPrediction
Source§fn clone(&self) -> RawPrediction
fn clone(&self) -> RawPrediction
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 RawPrediction
impl Debug for RawPrediction
Source§impl Default for RawPrediction
impl Default for RawPrediction
Source§fn default() -> RawPrediction
fn default() -> RawPrediction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RawPrediction
impl<'de> Deserialize<'de> for RawPrediction
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 RawPrediction
impl PartialEq for RawPrediction
Source§fn eq(&self, other: &RawPrediction) -> bool
fn eq(&self, other: &RawPrediction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RawPrediction
impl Serialize for RawPrediction
impl StructuralPartialEq for RawPrediction
Auto Trait Implementations§
impl Freeze for RawPrediction
impl RefUnwindSafe for RawPrediction
impl Send for RawPrediction
impl Sync for RawPrediction
impl Unpin for RawPrediction
impl UnsafeUnpin for RawPrediction
impl UnwindSafe for RawPrediction
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