pub struct PendingQuestion {
pub call_id: String,
pub index: u32,
pub item: QuestionItem,
pub args_json: String,
}Expand description
One question from an ask_question call, paused and awaiting an answer.
Identity is (call_id, index) (#1660): one ask_question call carries
1-3 questions, each individually answerable, so index is the question’s
position WITHIN the call’s own questions array — never a batch-wide
counter across multiple ask_question calls in the same turn.
Fields§
§call_id: StringProvider-assigned tool-call id of the ask_question call this
question came from. Shared by every PendingQuestion the same call
produced.
index: u32This question’s position within its call’s questions array
(0-based).
item: QuestionItemThe question itself: header, prompt, and options.
args_json: StringThe raw ask_question call’s full arguments JSON (every question in
the call, not just this one) — the audit binding a later signed
answer must match against, mirroring PendingApproval::args_json.
Trait Implementations§
Source§impl Clone for PendingQuestion
impl Clone for PendingQuestion
Source§fn clone(&self) -> PendingQuestion
fn clone(&self) -> PendingQuestion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PendingQuestion
impl Debug for PendingQuestion
impl Eq for PendingQuestion
Source§impl PartialEq for PendingQuestion
impl PartialEq for PendingQuestion
impl StructuralPartialEq for PendingQuestion
Auto Trait Implementations§
impl Freeze for PendingQuestion
impl RefUnwindSafe for PendingQuestion
impl Send for PendingQuestion
impl Sync for PendingQuestion
impl Unpin for PendingQuestion
impl UnsafeUnpin for PendingQuestion
impl UnwindSafe for PendingQuestion
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