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