pub struct AnswerDraft {
pub snapshot_id: String,
pub claims: Vec<AnswerClaim>,
pub abstain: bool,
}Expand description
A bounded proposed answer. Unchecked free-form prose is deliberately absent.
Fields§
§snapshot_id: StringExact snapshot supplied to the generator.
claims: Vec<AnswerClaim>At most 128 atomic claims, with no duplicate review keys.
abstain: boolExplicit abstention must contain no claims.
Implementations§
Source§impl AnswerDraft
impl AnswerDraft
Sourcepub fn review_keys(&self) -> Result<Vec<String>, ContextError>
pub fn review_keys(&self) -> Result<Vec<String>, ContextError>
Return keys for a trusted reviewer to use; this performs no factual assessment.
Trait Implementations§
Source§impl Clone for AnswerDraft
impl Clone for AnswerDraft
Source§impl Debug for AnswerDraft
impl Debug for AnswerDraft
Source§impl<'de> Deserialize<'de> for AnswerDraft
impl<'de> Deserialize<'de> for AnswerDraft
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnswerDraft
Source§impl PartialEq for AnswerDraft
impl PartialEq for AnswerDraft
Source§impl Serialize for AnswerDraft
impl Serialize for AnswerDraft
impl StructuralPartialEq for AnswerDraft
Auto Trait Implementations§
impl Forget for AnswerDraft
impl Freeze for AnswerDraft
impl Move for AnswerDraft
impl RefUnwindSafe for AnswerDraft
impl Send for AnswerDraft
impl Sync for AnswerDraft
impl Unpin for AnswerDraft
impl UnsafeUnpin for AnswerDraft
impl UnwindSafe for AnswerDraft
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