pub struct QuestionAnswer {
pub value: Option<AnswerValue>,
pub conformal_set: Option<Vec<String>>,
}Expand description
The answer to one question on one row.
Fields§
§value: Option<AnswerValue>None = abstained (emitted as null probabilities + null label).
conformal_set: Option<Vec<String>>Conformal prediction set (labels). Reserved in schema v1 — the column is
emitted but may be entirely unpopulated; None = no set on this row. An abstained
answer must not carry a set (abstention already says “no commitment”).
Implementations§
Source§impl QuestionAnswer
impl QuestionAnswer
Sourcepub fn answered(value: AnswerValue) -> Self
pub fn answered(value: AnswerValue) -> Self
An answered question with no conformal set.
Trait Implementations§
Source§impl Clone for QuestionAnswer
impl Clone for QuestionAnswer
Source§fn clone(&self) -> QuestionAnswer
fn clone(&self) -> QuestionAnswer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuestionAnswer
impl Debug for QuestionAnswer
Source§impl PartialEq for QuestionAnswer
impl PartialEq for QuestionAnswer
Source§fn eq(&self, other: &QuestionAnswer) -> bool
fn eq(&self, other: &QuestionAnswer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuestionAnswer
Auto Trait Implementations§
impl Freeze for QuestionAnswer
impl RefUnwindSafe for QuestionAnswer
impl Send for QuestionAnswer
impl Sync for QuestionAnswer
impl Unpin for QuestionAnswer
impl UnsafeUnpin for QuestionAnswer
impl UnwindSafe for QuestionAnswer
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