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