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