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