pub struct VerifiedResponse {
pub request_id: String,
pub tool_name: Option<String>,
pub args_json: Option<String>,
pub approved: bool,
pub reason: String,
pub signer_public_key: Vec<u8>,
}Expand description
A decoded approval_response payload after signature verification.
Fields§
§request_id: StringThe tool-call id this response answers.
tool_name: Option<String>The bound tool name (v2 only; None for legacy v1 — not executable).
args_json: Option<String>The bound args_json (v2 only; None for legacy v1 — not executable).
approved: boolWhether the request was approved.
reason: StringFree-form human-supplied reason.
signer_public_key: Vec<u8>The verified signer’s public key (encoded).
Implementations§
Source§impl VerifiedResponse
impl VerifiedResponse
Sourcepub const fn is_executable_approval(&self) -> bool
pub const fn is_executable_approval(&self) -> bool
Whether this response can authorize execution: it must be v2 (carry a
signed tool_name + args_json) and be approved. Legacy v1 responses
return false so the gate re-prompts (fail closed).
Trait Implementations§
Source§impl Clone for VerifiedResponse
impl Clone for VerifiedResponse
Source§fn clone(&self) -> VerifiedResponse
fn clone(&self) -> VerifiedResponse
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 moreAuto Trait Implementations§
impl Freeze for VerifiedResponse
impl RefUnwindSafe for VerifiedResponse
impl Send for VerifiedResponse
impl Sync for VerifiedResponse
impl Unpin for VerifiedResponse
impl UnsafeUnpin for VerifiedResponse
impl UnwindSafe for VerifiedResponse
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
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>
Converts
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>
Converts
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