pub struct WalletMandateRevocationOption {
pub option_id: String,
pub payloads: Vec<RevocationPayload>,
pub source: MandateSourceWallet,
}Expand description
One way the customer can remove the mandate’s spending allowance on-chain: a source and the payloads to sign for it.
JSON schema
{
"title": "Wallet Mandate Revocation Option",
"description": "One way the customer can remove the mandate's spending allowance on-chain: a source and the payloads to sign for it.",
"type": "object",
"required": [
"optionId",
"payloads",
"source"
],
"properties": {
"optionId": {
"description": "The unique identifier of the wallet mandate revocation option.",
"examples": [
"opt_b2c3d4e5-f6a7-8901-bcde-f23456789012"
],
"type": "string"
},
"payloads": {
"description": "The payloads the customer must sign to remove the spending allowance.",
"examples": [
[
{
"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"
}
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/RevocationPayload"
}
},
"source": {
"description": "The funding source whose spending allowance this option removes.",
"examples": [
{
"address": "0xAbC1234567890aBcDeF1234567890AbCdEf123456",
"asset": "usdc",
"network": "base"
}
],
"allOf": [
{
"$ref": "#/components/schemas/MandateSourceWallet"
}
]
}
}
}Fields§
§option_id: StringThe unique identifier of the wallet mandate revocation option.
payloads: Vec<RevocationPayload>The payloads the customer must sign to remove the spending allowance.
source: MandateSourceWalletThe funding source whose spending allowance this option removes.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WalletMandateRevocationOption
impl<'de> Deserialize<'de> for WalletMandateRevocationOption
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<&WalletMandateRevocationOption> for WalletMandateRevocationOption
impl From<&WalletMandateRevocationOption> for WalletMandateRevocationOption
Source§fn from(value: &WalletMandateRevocationOption) -> Self
fn from(value: &WalletMandateRevocationOption) -> Self
Converts to this type from the input type.
Source§impl From<WalletMandateRevocationOption> for WalletMandateRevocationOption
impl From<WalletMandateRevocationOption> for WalletMandateRevocationOption
Source§fn from(value: WalletMandateRevocationOption) -> Self
fn from(value: WalletMandateRevocationOption) -> Self
Converts to this type from the input type.
Source§impl TryFrom<WalletMandateRevocationOption> for WalletMandateRevocationOption
impl TryFrom<WalletMandateRevocationOption> for WalletMandateRevocationOption
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: WalletMandateRevocationOption,
) -> Result<Self, ConversionError>
fn try_from( value: WalletMandateRevocationOption, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WalletMandateRevocationOption
impl RefUnwindSafe for WalletMandateRevocationOption
impl Send for WalletMandateRevocationOption
impl Sync for WalletMandateRevocationOption
impl Unpin for WalletMandateRevocationOption
impl UnsafeUnpin for WalletMandateRevocationOption
impl UnwindSafe for WalletMandateRevocationOption
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