#[non_exhaustive]pub struct PairwiseMetricInstance {
pub instance: Option<Instance>,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Pairwise metric instance. Usually one instance corresponds to one row in an evaluation dataset.
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.instance: Option<Instance>Instance for pairwise metric.
Implementations§
Source§impl PairwiseMetricInstance
impl PairwiseMetricInstance
pub fn new() -> Self
Sourcepub fn set_instance<T: Into<Option<Instance>>>(self, v: T) -> Self
pub fn set_instance<T: Into<Option<Instance>>>(self, v: T) -> Self
Sourcepub fn json_instance(&self) -> Option<&String>
pub fn json_instance(&self) -> Option<&String>
The value of instance
if it holds a JsonInstance, None if the field is not set or
holds a different branch.
Sourcepub fn set_json_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_json_instance<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for PairwiseMetricInstance
impl Clone for PairwiseMetricInstance
Source§fn clone(&self) -> PairwiseMetricInstance
fn clone(&self) -> PairwiseMetricInstance
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 PairwiseMetricInstance
impl Debug for PairwiseMetricInstance
Source§impl Default for PairwiseMetricInstance
impl Default for PairwiseMetricInstance
Source§fn default() -> PairwiseMetricInstance
fn default() -> PairwiseMetricInstance
Returns the “default value” for a type. Read more
Source§impl Message for PairwiseMetricInstance
impl Message for PairwiseMetricInstance
Source§impl PartialEq for PairwiseMetricInstance
impl PartialEq for PairwiseMetricInstance
impl StructuralPartialEq for PairwiseMetricInstance
Auto Trait Implementations§
impl Freeze for PairwiseMetricInstance
impl RefUnwindSafe for PairwiseMetricInstance
impl Send for PairwiseMetricInstance
impl Sync for PairwiseMetricInstance
impl Unpin for PairwiseMetricInstance
impl UnwindSafe for PairwiseMetricInstance
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