pub struct MppChallenge {
pub error: String,
pub mpp_challenge_id: String,
pub www_authenticate: String,
}Expand description
Machine Payments Protocol (MPP) 402 challenge response. Returned when the server cannot authorize a payment charge on the caller’s behalf and requires the caller to sign a credential with their wallet private key.
JSON schema
{
"description": "Machine Payments Protocol (MPP) 402 challenge response. Returned when the\nserver cannot authorize a payment charge on the caller's behalf and requires\nthe caller to sign a credential with their wallet private key.\n",
"type": "object",
"required": [
"error",
"mpp_challenge_id",
"www_authenticate"
],
"properties": {
"error": {
"examples": [
"payment_required"
],
"type": "string"
},
"mpp_challenge_id": {
"description": "Unique challenge identifier issued by the Tempo payment server",
"examples": [
"chal_abc123"
],
"type": "string"
},
"www_authenticate": {
"description": "Value to use in the `Authorization` header when retrying the request\nafter signing the challenge. Format: `Payment challenge=\"<id>\"`.\n",
"examples": [
"Payment challenge=\"chal_abc123\""
],
"type": "string"
}
},
"additionalProperties": false
}Fields§
§error: String§mpp_challenge_id: StringUnique challenge identifier issued by the Tempo payment server
www_authenticate: StringValue to use in the Authorization header when retrying the request
after signing the challenge. Format: Payment challenge="<id>".
Trait Implementations§
Source§impl Clone for MppChallenge
impl Clone for MppChallenge
Source§fn clone(&self) -> MppChallenge
fn clone(&self) -> MppChallenge
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 moreSource§impl Debug for MppChallenge
impl Debug for MppChallenge
Source§impl<'de> Deserialize<'de> for MppChallenge
impl<'de> Deserialize<'de> for MppChallenge
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
Auto Trait Implementations§
impl Freeze for MppChallenge
impl RefUnwindSafe for MppChallenge
impl Send for MppChallenge
impl Sync for MppChallenge
impl Unpin for MppChallenge
impl UnsafeUnpin for MppChallenge
impl UnwindSafe for MppChallenge
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