pub struct SpendPermissionResponseObject {
pub created_at: DateTime<Utc>,
pub network: SpendPermissionNetwork,
pub permission: SpendPermission,
pub permission_hash: String,
pub revoked: bool,
pub revoked_at: Option<DateTime<Utc>>,
}
Expand description
SpendPermissionResponseObject
JSON schema
{
"type": "object",
"required": [
"createdAt",
"network",
"permission",
"permissionHash",
"revoked"
],
"properties": {
"createdAt": {
"description": "The UTC ISO 8601 timestamp when the permission was created.",
"examples": [
"2025-03-25T12:00:00Z"
],
"type": "string",
"format": "date-time"
},
"network": {
"$ref": "#/components/schemas/SpendPermissionNetwork"
},
"permission": {
"$ref": "#/components/schemas/SpendPermission"
},
"permissionHash": {
"description": "Unique hash identifier for this permission.",
"examples": [
"0x62bc94756bb6221a7913beab6024171fc60d3380fdc06759bfac76e8ccb3f63d"
],
"type": "string"
},
"revoked": {
"description": "Whether this permission has been revoked.",
"examples": [
false
],
"type": "boolean"
},
"revokedAt": {
"description": "The UTC ISO 8601 timestamp when the permission was revoked (if applicable).",
"examples": [
"2025-03-25T12:00:00Z"
],
"type": "string",
"format": "date-time"
}
}
}
Fields§
§created_at: DateTime<Utc>
The UTC ISO 8601 timestamp when the permission was created.
network: SpendPermissionNetwork
§permission: SpendPermission
§permission_hash: String
Unique hash identifier for this permission.
revoked: bool
Whether this permission has been revoked.
revoked_at: Option<DateTime<Utc>>
The UTC ISO 8601 timestamp when the permission was revoked (if applicable).
Implementations§
Trait Implementations§
Source§impl Clone for SpendPermissionResponseObject
impl Clone for SpendPermissionResponseObject
Source§fn clone(&self) -> SpendPermissionResponseObject
fn clone(&self) -> SpendPermissionResponseObject
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<'de> Deserialize<'de> for SpendPermissionResponseObject
impl<'de> Deserialize<'de> for SpendPermissionResponseObject
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<&SpendPermissionResponseObject> for SpendPermissionResponseObject
impl From<&SpendPermissionResponseObject> for SpendPermissionResponseObject
Source§fn from(value: &SpendPermissionResponseObject) -> Self
fn from(value: &SpendPermissionResponseObject) -> Self
Converts to this type from the input type.
Source§impl From<SpendPermissionResponseObject> for SpendPermissionResponseObject
impl From<SpendPermissionResponseObject> for SpendPermissionResponseObject
Source§fn from(value: SpendPermissionResponseObject) -> Self
fn from(value: SpendPermissionResponseObject) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SpendPermissionResponseObject> for SpendPermissionResponseObject
impl TryFrom<SpendPermissionResponseObject> for SpendPermissionResponseObject
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SpendPermissionResponseObject,
) -> Result<Self, ConversionError>
fn try_from( value: SpendPermissionResponseObject, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SpendPermissionResponseObject
impl RefUnwindSafe for SpendPermissionResponseObject
impl Send for SpendPermissionResponseObject
impl Sync for SpendPermissionResponseObject
impl Unpin for SpendPermissionResponseObject
impl UnwindSafe for SpendPermissionResponseObject
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