#[non_exhaustive]pub struct RougeInput {
pub metric_spec: Option<RougeSpec>,
pub instances: Vec<RougeInstance>,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Input for rouge 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<RougeSpec>Required. Spec for rouge score metric.
instances: Vec<RougeInstance>Required. Repeated rouge instances.
Implementations§
Source§impl RougeInput
impl RougeInput
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::RougeSpec;
let x = RougeInput::new().set_metric_spec(RougeSpec::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::RougeSpec;
let x = RougeInput::new().set_or_clear_metric_spec(Some(RougeSpec::default()/* use setters */));
let x = RougeInput::new().set_or_clear_metric_spec(None::<RougeSpec>);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 RougeInput
impl Clone for RougeInput
Source§fn clone(&self) -> RougeInput
fn clone(&self) -> RougeInput
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 RougeInput
impl Debug for RougeInput
Source§impl Default for RougeInput
impl Default for RougeInput
Source§fn default() -> RougeInput
fn default() -> RougeInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for RougeInput
impl PartialEq for RougeInput
impl StructuralPartialEq for RougeInput
Auto Trait Implementations§
impl Freeze for RougeInput
impl RefUnwindSafe for RougeInput
impl Send for RougeInput
impl Sync for RougeInput
impl Unpin for RougeInput
impl UnwindSafe for RougeInput
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