#[non_exhaustive]pub struct PointwiseMetricResult {
pub score: Option<f32>,
pub explanation: String,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for pointwise metric result.
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.score: Option<f32>Output only. Pointwise metric score.
explanation: StringOutput only. Explanation for pointwise metric score.
Implementations§
Source§impl PointwiseMetricResult
impl PointwiseMetricResult
pub fn new() -> Self
Sourcepub fn set_or_clear_score<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_score<T>(self, v: Option<T>) -> Self
Sourcepub fn set_explanation<T: Into<String>>(self, v: T) -> Self
pub fn set_explanation<T: Into<String>>(self, v: T) -> Self
Sets the value of explanation.
§Example
ⓘ
let x = PointwiseMetricResult::new().set_explanation("example");Trait Implementations§
Source§impl Clone for PointwiseMetricResult
impl Clone for PointwiseMetricResult
Source§fn clone(&self) -> PointwiseMetricResult
fn clone(&self) -> PointwiseMetricResult
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 PointwiseMetricResult
impl Debug for PointwiseMetricResult
Source§impl Default for PointwiseMetricResult
impl Default for PointwiseMetricResult
Source§fn default() -> PointwiseMetricResult
fn default() -> PointwiseMetricResult
Returns the “default value” for a type. Read more
Source§impl Message for PointwiseMetricResult
impl Message for PointwiseMetricResult
Source§impl PartialEq for PointwiseMetricResult
impl PartialEq for PointwiseMetricResult
impl StructuralPartialEq for PointwiseMetricResult
Auto Trait Implementations§
impl Freeze for PointwiseMetricResult
impl RefUnwindSafe for PointwiseMetricResult
impl Send for PointwiseMetricResult
impl Sync for PointwiseMetricResult
impl Unpin for PointwiseMetricResult
impl UnwindSafe for PointwiseMetricResult
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