pub struct WalletMandateRevocationOptionsResponse {
pub options: Vec<WalletMandateRevocationOption>,
}Expand description
The ways the customer can remove this mandate’s spending allowance on-chain.
JSON schema
{
"title": "Wallet Mandate Revocation Options Response",
"description": "The ways the customer can remove this mandate's spending allowance on-chain.",
"type": "object",
"required": [
"options"
],
"properties": {
"options": {
"description": "The available revocation options. At least one is present; when there is no active spending allowance to remove, the request fails with a `422` instead.",
"examples": [
[
{
"optionId": "opt_b2c3d4e5-f6a7-8901-bcde-f23456789012",
"payloads": [
{
"data": {
"domain": {
"chainId": 8453,
"name": "USD Coin",
"verifyingContract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"version": "2"
},
"message": {
"deadline": "1798761600",
"nonce": "1",
"owner": "0xAbC1234567890aBcDeF1234567890AbCdEf123456",
"spender": "0x9Fb909eA400c2b8D99Be292DADf07e63B814527c",
"value": "0"
},
"primaryType": "Permit",
"types": {
"EIP712Domain": [
{
"name": "name",
"type": "string"
},
{
"name": "version",
"type": "string"
},
{
"name": "chainId",
"type": "uint256"
},
{
"name": "verifyingContract",
"type": "address"
}
],
"Permit": [
{
"name": "owner",
"type": "address"
},
{
"name": "spender",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
}
]
}
},
"payloadId": "payload_bf3048c1-0957-5gf8-cgf0-ddd33e046225",
"type": "eip2612"
}
],
"source": {
"address": "0xAbC1234567890aBcDeF1234567890AbCdEf123456",
"asset": "usdc",
"network": "base"
}
}
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/WalletMandateRevocationOption"
}
}
}
}Fields§
§options: Vec<WalletMandateRevocationOption>The available revocation options. At least one is present; when there is no active spending allowance to remove, the request fails with a 422 instead.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WalletMandateRevocationOptionsResponse
impl<'de> Deserialize<'de> for WalletMandateRevocationOptionsResponse
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
Source§impl From<&WalletMandateRevocationOptionsResponse> for WalletMandateRevocationOptionsResponse
impl From<&WalletMandateRevocationOptionsResponse> for WalletMandateRevocationOptionsResponse
Source§fn from(value: &WalletMandateRevocationOptionsResponse) -> Self
fn from(value: &WalletMandateRevocationOptionsResponse) -> Self
Converts to this type from the input type.
Source§impl From<WalletMandateRevocationOptionsResponse> for WalletMandateRevocationOptionsResponse
impl From<WalletMandateRevocationOptionsResponse> for WalletMandateRevocationOptionsResponse
Source§fn from(value: WalletMandateRevocationOptionsResponse) -> Self
fn from(value: WalletMandateRevocationOptionsResponse) -> Self
Converts to this type from the input type.
Source§impl TryFrom<WalletMandateRevocationOptionsResponse> for WalletMandateRevocationOptionsResponse
impl TryFrom<WalletMandateRevocationOptionsResponse> for WalletMandateRevocationOptionsResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: WalletMandateRevocationOptionsResponse,
) -> Result<Self, ConversionError>
fn try_from( value: WalletMandateRevocationOptionsResponse, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WalletMandateRevocationOptionsResponse
impl RefUnwindSafe for WalletMandateRevocationOptionsResponse
impl Send for WalletMandateRevocationOptionsResponse
impl Sync for WalletMandateRevocationOptionsResponse
impl Unpin for WalletMandateRevocationOptionsResponse
impl UnsafeUnpin for WalletMandateRevocationOptionsResponse
impl UnwindSafe for WalletMandateRevocationOptionsResponse
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