pub struct VerifiedRefusal {
pub kind: String,
pub reason: String,
pub reason_detail: String,
pub merchant_host: String,
pub requested_base_units: String,
pub permitted_base_units: String,
pub tool_call_id: String,
pub subject: String,
pub timestamp: String,
pub signer_public_key: Vec<u8>,
}Expand description
A decoded payment_refusal payload after signature verification.
Fields§
§kind: StringThe signed event kind (always payment_refusal). Callers should
check it matches the kind the event was stored under, mirroring
VerifiedReceipt::kind.
reason: StringThe stable, machine-readable reason tag.
reason_detail: StringNon-secret diagnostic detail for the reason.
merchant_host: StringThe destination host the fetch would have paid, or empty.
requested_base_units: StringRequested base-unit amount as a decimal string, or empty.
permitted_base_units: StringPermitted base-unit amount as a decimal string, or empty.
tool_call_id: StringThe paid_fetch tool-call id the refused attempt answered.
subject: StringOpaque principal the refused attempt is attributed to.
timestamp: StringDecimal string of the unix-seconds clock value at the moment the reject site recorded the refusal.
signer_public_key: Vec<u8>The verified signer’s public key (encoded).
Trait Implementations§
Source§impl Clone for VerifiedRefusal
impl Clone for VerifiedRefusal
Source§fn clone(&self) -> VerifiedRefusal
fn clone(&self) -> VerifiedRefusal
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 VerifiedRefusal
impl RefUnwindSafe for VerifiedRefusal
impl Send for VerifiedRefusal
impl Sync for VerifiedRefusal
impl Unpin for VerifiedRefusal
impl UnsafeUnpin for VerifiedRefusal
impl UnwindSafe for VerifiedRefusal
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