pub enum Ap2DenyKind {
IntentCartMismatch,
MissingSignature,
UnknownKey,
InvalidSignature,
Unpriceable,
IntentScopeMismatch,
CartOverCeiling,
}Expand description
Why an AP2 payment was denied. Every variant is a hard stop — the payment is not authorized.
Variants§
IntentCartMismatch
The Cart’s intent_id does not match the Intent presented.
MissingSignature
A mandate carried an empty signature.
UnknownKey
A mandate was signed by a key_id not in the trusted keyring.
InvalidSignature
A signature failed Ed25519 verification (tampered / wrong key).
Unpriceable
The cart total is in a currency that can’t be priced against the cents budget (non-USD).
IntentScopeMismatch
The cart’s merchant/category/amount falls outside the Intent’s scope.
CartOverCeiling
The cart total would breach the per-task budget ceiling.
Implementations§
Trait Implementations§
Source§impl Clone for Ap2DenyKind
impl Clone for Ap2DenyKind
Source§fn clone(&self) -> Ap2DenyKind
fn clone(&self) -> Ap2DenyKind
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 moreimpl Copy for Ap2DenyKind
Source§impl Debug for Ap2DenyKind
impl Debug for Ap2DenyKind
Source§impl<'de> Deserialize<'de> for Ap2DenyKind
impl<'de> Deserialize<'de> for Ap2DenyKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Ap2DenyKind
Source§impl PartialEq for Ap2DenyKind
impl PartialEq for Ap2DenyKind
Source§impl Serialize for Ap2DenyKind
impl Serialize for Ap2DenyKind
impl StructuralPartialEq for Ap2DenyKind
Auto Trait Implementations§
impl Freeze for Ap2DenyKind
impl RefUnwindSafe for Ap2DenyKind
impl Send for Ap2DenyKind
impl Sync for Ap2DenyKind
impl Unpin for Ap2DenyKind
impl UnsafeUnpin for Ap2DenyKind
impl UnwindSafe for Ap2DenyKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<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
Compare self to
key and return true if they are equal.