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