pub enum AnswerState {
Answered,
Declined,
AutoResolved,
}Expand description
A resolved answer’s state (invariant I4: three states, pairwise distinguishable in the tool result).
Variants§
Answered
A human picked one of the offered options.
Declined
A human explicitly declined to choose — “use your own judgment” —
distinct from Self::Answered so the agent never mistakes a
decline for a real answer.
AutoResolved
Nobody answered before the idle window elapsed; the control plane auto-resolved to the recommended option (or the first option if none was marked). Distinct from both other states so the agent is told explicitly this was an assumption, not a genuine human answer.
Trait Implementations§
Source§impl Clone for AnswerState
impl Clone for AnswerState
Source§fn clone(&self) -> AnswerState
fn clone(&self) -> AnswerState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AnswerState
Source§impl Debug for AnswerState
impl Debug for AnswerState
impl Eq for AnswerState
Source§impl From<AnswerState> for String
The reverse of AnswerState’s FromStr impl above — the exact
wire/persisted state string this state signs as.
impl From<AnswerState> for String
The reverse of AnswerState’s FromStr impl above — the exact
wire/persisted state string this state signs as.
Source§fn from(state: AnswerState) -> Self
fn from(state: AnswerState) -> Self
Source§impl FromStr for AnswerState
The ONE place the wire/persisted state string (polyc_crypto::question’s
ANSWERED_STATE/DECLINED_STATE/AUTO_RESOLVED_STATE consts — the proto
field itself stays a plain string; only its Rust-side conversion is
centralized here) converts to and from AnswerState. Every reader that
decodes a signed answer’s state — harness_dialer.rs’s
From<&QuestionAnswerRecord> and polyc_turn_runner::verify_question_answers
— calls this instead of re-deriving its own if/else chain.
impl FromStr for AnswerState
The ONE place the wire/persisted state string (polyc_crypto::question’s
ANSWERED_STATE/DECLINED_STATE/AUTO_RESOLVED_STATE consts — the proto
field itself stays a plain string; only its Rust-side conversion is
centralized here) converts to and from AnswerState. Every reader that
decodes a signed answer’s state — harness_dialer.rs’s
From<&QuestionAnswerRecord> and polyc_turn_runner::verify_question_answers
— calls this instead of re-deriving its own if/else chain.
Source§impl PartialEq for AnswerState
impl PartialEq for AnswerState
impl StructuralPartialEq for AnswerState
Auto Trait Implementations§
impl Freeze for AnswerState
impl RefUnwindSafe for AnswerState
impl Send for AnswerState
impl Sync for AnswerState
impl Unpin for AnswerState
impl UnsafeUnpin for AnswerState
impl UnwindSafe for AnswerState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more