pub struct DecodedResponse {Show 17 fields
pub turn_id: String,
pub request_id: String,
pub tool_name: String,
pub args_json: String,
pub modified_args_json: String,
pub approved: bool,
pub approved_for_session: bool,
pub covered_capabilities: Vec<String>,
pub caller: String,
pub approver: String,
pub sandbox_mode: String,
pub reason: String,
pub injected_context: String,
pub conversation_id: String,
pub nonce: String,
pub signer_pk_hex: String,
pub signature_hex: String,
}Expand description
Every decoded field of an approval_response payload (unverified).
Fields§
§turn_id: StringTurn that emitted this occurrence. Empty on historical payloads.
request_id: StringTool-call id this response answers.
tool_name: StringBound tool name.
args_json: StringBound args_json — the model’s proposed args (identity binding).
modified_args_json: StringThe approver’s edit to the proposed args (empty = unedited).
approved: boolApprove / deny decision.
approved_for_session: boolWhether the approval is remembered for the session (“don’t ask again”).
covered_capabilities: Vec<String>The capability shortfall this approval covered (#595).
caller: StringThe caller identity the (session) approval is scoped to — the paused
turn’s own beneficiary, NOT necessarily who clicked. See approver.
approver: StringThe identity that actually resolved this decision (#1025), when the
edge supplied one — empty otherwise (no edge integration yet, or a
payload signed before this field existed). Distinct from caller.
sandbox_mode: StringThe sandbox/permission mode the grant was made under.
reason: StringHuman-supplied reason.
injected_context: StringContext the approver attached to inject before execution (empty = none).
conversation_id: StringThe conversation the approval was granted in (#370 binding).
nonce: StringPer-approval single-use nonce (#370 binding).
signer_pk_hex: StringSigner public key, hex.
signature_hex: StringSignature, hex.
Trait Implementations§
Source§impl Clone for DecodedResponse
impl Clone for DecodedResponse
Source§fn clone(&self) -> DecodedResponse
fn clone(&self) -> DecodedResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DecodedResponse
impl RefUnwindSafe for DecodedResponse
impl Send for DecodedResponse
impl Sync for DecodedResponse
impl Unpin for DecodedResponse
impl UnsafeUnpin for DecodedResponse
impl UnwindSafe for DecodedResponse
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<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