pub struct DecodedResponse {
pub request_id: String,
pub tool_name: Option<String>,
pub args_json: Option<String>,
pub approved: bool,
pub reason: String,
pub signer_pk_hex: String,
pub signature_hex: String,
}Expand description
Every decoded field of an approval_response payload (unverified). tool_name
/ args_json are present only for v2 payloads.
Fields§
§request_id: StringTool-call id this response answers.
tool_name: Option<String>Bound tool name (v2 only).
args_json: Option<String>Bound args_json (v2 only).
approved: boolApprove / deny decision.
reason: StringHuman-supplied reason.
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
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 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
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