#[non_exhaustive]pub struct QuestionAnsweringQualitySpec {
pub use_reference: bool,
pub version: i32,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for question answering quality score 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.use_reference: boolOptional. Whether to use instance.reference to compute question answering quality.
version: i32Optional. Which version to use for evaluation.
Implementations§
Source§impl QuestionAnsweringQualitySpec
impl QuestionAnsweringQualitySpec
pub fn new() -> Self
Sourcepub fn set_use_reference<T: Into<bool>>(self, v: T) -> Self
pub fn set_use_reference<T: Into<bool>>(self, v: T) -> Self
Sets the value of use_reference.
§Example
ⓘ
let x = QuestionAnsweringQualitySpec::new().set_use_reference(true);Trait Implementations§
Source§impl Clone for QuestionAnsweringQualitySpec
impl Clone for QuestionAnsweringQualitySpec
Source§fn clone(&self) -> QuestionAnsweringQualitySpec
fn clone(&self) -> QuestionAnsweringQualitySpec
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 QuestionAnsweringQualitySpec
impl Debug for QuestionAnsweringQualitySpec
Source§impl Default for QuestionAnsweringQualitySpec
impl Default for QuestionAnsweringQualitySpec
Source§fn default() -> QuestionAnsweringQualitySpec
fn default() -> QuestionAnsweringQualitySpec
Returns the “default value” for a type. Read more
Source§impl PartialEq for QuestionAnsweringQualitySpec
impl PartialEq for QuestionAnsweringQualitySpec
Source§fn eq(&self, other: &QuestionAnsweringQualitySpec) -> bool
fn eq(&self, other: &QuestionAnsweringQualitySpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuestionAnsweringQualitySpec
Auto Trait Implementations§
impl Freeze for QuestionAnsweringQualitySpec
impl RefUnwindSafe for QuestionAnsweringQualitySpec
impl Send for QuestionAnsweringQualitySpec
impl Sync for QuestionAnsweringQualitySpec
impl Unpin for QuestionAnsweringQualitySpec
impl UnwindSafe for QuestionAnsweringQualitySpec
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