#[non_exhaustive]pub struct PairwiseMetricInput {
pub metric_spec: Option<PairwiseMetricSpec>,
pub instance: Option<PairwiseMetricInstance>,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Input for pairwise metric.
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.metric_spec: Option<PairwiseMetricSpec>Required. Spec for pairwise metric.
instance: Option<PairwiseMetricInstance>Required. Pairwise metric instance.
Implementations§
Source§impl PairwiseMetricInput
impl PairwiseMetricInput
pub fn new() -> Self
Sourcepub fn set_metric_spec<T>(self, v: T) -> Selfwhere
T: Into<PairwiseMetricSpec>,
pub fn set_metric_spec<T>(self, v: T) -> Selfwhere
T: Into<PairwiseMetricSpec>,
Sets the value of metric_spec.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::PairwiseMetricSpec;
let x = PairwiseMetricInput::new().set_metric_spec(PairwiseMetricSpec::default()/* use setters */);Sourcepub fn set_or_clear_metric_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<PairwiseMetricSpec>,
pub fn set_or_clear_metric_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<PairwiseMetricSpec>,
Sets or clears the value of metric_spec.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::PairwiseMetricSpec;
let x = PairwiseMetricInput::new().set_or_clear_metric_spec(Some(PairwiseMetricSpec::default()/* use setters */));
let x = PairwiseMetricInput::new().set_or_clear_metric_spec(None::<PairwiseMetricSpec>);Sourcepub fn set_instance<T>(self, v: T) -> Selfwhere
T: Into<PairwiseMetricInstance>,
pub fn set_instance<T>(self, v: T) -> Selfwhere
T: Into<PairwiseMetricInstance>,
Sourcepub fn set_or_clear_instance<T>(self, v: Option<T>) -> Selfwhere
T: Into<PairwiseMetricInstance>,
pub fn set_or_clear_instance<T>(self, v: Option<T>) -> Selfwhere
T: Into<PairwiseMetricInstance>,
Sets or clears the value of instance.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::PairwiseMetricInstance;
let x = PairwiseMetricInput::new().set_or_clear_instance(Some(PairwiseMetricInstance::default()/* use setters */));
let x = PairwiseMetricInput::new().set_or_clear_instance(None::<PairwiseMetricInstance>);Trait Implementations§
Source§impl Clone for PairwiseMetricInput
impl Clone for PairwiseMetricInput
Source§fn clone(&self) -> PairwiseMetricInput
fn clone(&self) -> PairwiseMetricInput
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 PairwiseMetricInput
impl Debug for PairwiseMetricInput
Source§impl Default for PairwiseMetricInput
impl Default for PairwiseMetricInput
Source§fn default() -> PairwiseMetricInput
fn default() -> PairwiseMetricInput
Returns the “default value” for a type. Read more
Source§impl Message for PairwiseMetricInput
impl Message for PairwiseMetricInput
Source§impl PartialEq for PairwiseMetricInput
impl PartialEq for PairwiseMetricInput
impl StructuralPartialEq for PairwiseMetricInput
Auto Trait Implementations§
impl Freeze for PairwiseMetricInput
impl RefUnwindSafe for PairwiseMetricInput
impl Send for PairwiseMetricInput
impl Sync for PairwiseMetricInput
impl Unpin for PairwiseMetricInput
impl UnwindSafe for PairwiseMetricInput
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