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