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