#[non_exhaustive]pub struct BleuInput {
pub metric_spec: Option<BleuSpec>,
pub instances: Vec<BleuInstance>,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Input for bleu 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<BleuSpec>Required. Spec for bleu score metric.
instances: Vec<BleuInstance>Required. Repeated bleu instances.
Implementations§
Source§impl BleuInput
impl BleuInput
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::BleuSpec;
let x = BleuInput::new().set_metric_spec(BleuSpec::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::BleuSpec;
let x = BleuInput::new().set_or_clear_metric_spec(Some(BleuSpec::default()/* use setters */));
let x = BleuInput::new().set_or_clear_metric_spec(None::<BleuSpec>);Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Trait Implementations§
impl StructuralPartialEq for BleuInput
Auto Trait Implementations§
impl Freeze for BleuInput
impl RefUnwindSafe for BleuInput
impl Send for BleuInput
impl Sync for BleuInput
impl Unpin for BleuInput
impl UnwindSafe for BleuInput
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