#[non_exhaustive]pub struct PairwiseMetricResult {
pub pairwise_choice: PairwiseChoice,
pub explanation: String,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for pairwise 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.pairwise_choice: PairwiseChoiceOutput only. Pairwise metric choice.
explanation: StringOutput only. Explanation for pairwise metric score.
Implementations§
Source§impl PairwiseMetricResult
impl PairwiseMetricResult
pub fn new() -> Self
Sourcepub fn set_pairwise_choice<T: Into<PairwiseChoice>>(self, v: T) -> Self
pub fn set_pairwise_choice<T: Into<PairwiseChoice>>(self, v: T) -> Self
Sets the value of pairwise_choice.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::PairwiseChoice;
let x0 = PairwiseMetricResult::new().set_pairwise_choice(PairwiseChoice::Baseline);
let x1 = PairwiseMetricResult::new().set_pairwise_choice(PairwiseChoice::Candidate);
let x2 = PairwiseMetricResult::new().set_pairwise_choice(PairwiseChoice::Tie);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 = PairwiseMetricResult::new().set_explanation("example");Trait Implementations§
Source§impl Clone for PairwiseMetricResult
impl Clone for PairwiseMetricResult
Source§fn clone(&self) -> PairwiseMetricResult
fn clone(&self) -> PairwiseMetricResult
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 PairwiseMetricResult
impl Debug for PairwiseMetricResult
Source§impl Default for PairwiseMetricResult
impl Default for PairwiseMetricResult
Source§fn default() -> PairwiseMetricResult
fn default() -> PairwiseMetricResult
Returns the “default value” for a type. Read more
Source§impl Message for PairwiseMetricResult
impl Message for PairwiseMetricResult
Source§impl PartialEq for PairwiseMetricResult
impl PartialEq for PairwiseMetricResult
impl StructuralPartialEq for PairwiseMetricResult
Auto Trait Implementations§
impl Freeze for PairwiseMetricResult
impl RefUnwindSafe for PairwiseMetricResult
impl Send for PairwiseMetricResult
impl Sync for PairwiseMetricResult
impl Unpin for PairwiseMetricResult
impl UnwindSafe for PairwiseMetricResult
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