#[non_exhaustive]pub struct ToolParameterKVMatchInstance {
pub prediction: Option<String>,
pub reference: Option<String>,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for tool parameter key value match instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prediction: Option<String>Required. Output of the evaluated model.
reference: Option<String>Required. Ground truth used to compare against the prediction.
Implementations§
Source§impl ToolParameterKVMatchInstance
impl ToolParameterKVMatchInstance
pub fn new() -> Self
Sourcepub fn set_prediction<T>(self, v: T) -> Self
pub fn set_prediction<T>(self, v: T) -> Self
Sets the value of prediction.
§Example
ⓘ
let x = ToolParameterKVMatchInstance::new().set_prediction("example");Sourcepub fn set_or_clear_prediction<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_prediction<T>(self, v: Option<T>) -> Self
Sets or clears the value of prediction.
§Example
ⓘ
let x = ToolParameterKVMatchInstance::new().set_or_clear_prediction(Some("example"));
let x = ToolParameterKVMatchInstance::new().set_or_clear_prediction(None::<String>);Sourcepub fn set_reference<T>(self, v: T) -> Self
pub fn set_reference<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_reference<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_reference<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for ToolParameterKVMatchInstance
impl Clone for ToolParameterKVMatchInstance
Source§fn clone(&self) -> ToolParameterKVMatchInstance
fn clone(&self) -> ToolParameterKVMatchInstance
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 ToolParameterKVMatchInstance
impl Debug for ToolParameterKVMatchInstance
Source§impl Default for ToolParameterKVMatchInstance
impl Default for ToolParameterKVMatchInstance
Source§fn default() -> ToolParameterKVMatchInstance
fn default() -> ToolParameterKVMatchInstance
Returns the “default value” for a type. Read more
Source§impl PartialEq for ToolParameterKVMatchInstance
impl PartialEq for ToolParameterKVMatchInstance
Source§fn eq(&self, other: &ToolParameterKVMatchInstance) -> bool
fn eq(&self, other: &ToolParameterKVMatchInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolParameterKVMatchInstance
Auto Trait Implementations§
impl Freeze for ToolParameterKVMatchInstance
impl RefUnwindSafe for ToolParameterKVMatchInstance
impl Send for ToolParameterKVMatchInstance
impl Sync for ToolParameterKVMatchInstance
impl Unpin for ToolParameterKVMatchInstance
impl UnwindSafe for ToolParameterKVMatchInstance
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