#[non_exhaustive]pub struct PointwiseMetricInstance {
pub instance: Option<Instance>,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Pointwise 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 pointwise metric.
Implementations§
Source§impl PointwiseMetricInstance
impl PointwiseMetricInstance
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 PointwiseMetricInstance
impl Clone for PointwiseMetricInstance
Source§fn clone(&self) -> PointwiseMetricInstance
fn clone(&self) -> PointwiseMetricInstance
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 PointwiseMetricInstance
impl Debug for PointwiseMetricInstance
Source§impl Default for PointwiseMetricInstance
impl Default for PointwiseMetricInstance
Source§fn default() -> PointwiseMetricInstance
fn default() -> PointwiseMetricInstance
Returns the “default value” for a type. Read more
Source§impl Message for PointwiseMetricInstance
impl Message for PointwiseMetricInstance
Source§impl PartialEq for PointwiseMetricInstance
impl PartialEq for PointwiseMetricInstance
impl StructuralPartialEq for PointwiseMetricInstance
Auto Trait Implementations§
impl Freeze for PointwiseMetricInstance
impl RefUnwindSafe for PointwiseMetricInstance
impl Send for PointwiseMetricInstance
impl Sync for PointwiseMetricInstance
impl Unpin for PointwiseMetricInstance
impl UnwindSafe for PointwiseMetricInstance
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