pub struct RevokeSpendPermissionRequest {
pub network: SpendPermissionNetwork,
pub paymaster_url: Option<String>,
pub permission_hash: String,
}
Expand description
RevokeSpendPermissionRequest
JSON schema
{
"type": "object",
"required": [
"network",
"permissionHash"
],
"properties": {
"network": {
"$ref": "#/components/schemas/SpendPermissionNetwork"
},
"paymasterUrl": {
"description": "The paymaster URL of the spend permission.",
"examples": [
"https://paymaster.cdp.coinbase.com"
],
"type": "string"
},
"permissionHash": {
"description": "The hash of the spend permission to revoke.",
"examples": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
],
"type": "string"
}
}
}
Fields§
§network: SpendPermissionNetwork
§paymaster_url: Option<String>
The paymaster URL of the spend permission.
permission_hash: String
The hash of the spend permission to revoke.
Implementations§
Trait Implementations§
Source§impl Clone for RevokeSpendPermissionRequest
impl Clone for RevokeSpendPermissionRequest
Source§fn clone(&self) -> RevokeSpendPermissionRequest
fn clone(&self) -> RevokeSpendPermissionRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 RevokeSpendPermissionRequest
impl Debug for RevokeSpendPermissionRequest
Source§impl<'de> Deserialize<'de> for RevokeSpendPermissionRequest
impl<'de> Deserialize<'de> for RevokeSpendPermissionRequest
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<&RevokeSpendPermissionRequest> for RevokeSpendPermissionRequest
impl From<&RevokeSpendPermissionRequest> for RevokeSpendPermissionRequest
Source§fn from(value: &RevokeSpendPermissionRequest) -> Self
fn from(value: &RevokeSpendPermissionRequest) -> Self
Converts to this type from the input type.
Source§impl From<RevokeSpendPermissionRequest> for RevokeSpendPermissionRequest
impl From<RevokeSpendPermissionRequest> for RevokeSpendPermissionRequest
Source§fn from(value: RevokeSpendPermissionRequest) -> Self
fn from(value: RevokeSpendPermissionRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<RevokeSpendPermissionRequest> for RevokeSpendPermissionRequest
impl TryFrom<RevokeSpendPermissionRequest> for RevokeSpendPermissionRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: RevokeSpendPermissionRequest,
) -> Result<Self, ConversionError>
fn try_from( value: RevokeSpendPermissionRequest, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RevokeSpendPermissionRequest
impl RefUnwindSafe for RevokeSpendPermissionRequest
impl Send for RevokeSpendPermissionRequest
impl Sync for RevokeSpendPermissionRequest
impl Unpin for RevokeSpendPermissionRequest
impl UnwindSafe for RevokeSpendPermissionRequest
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