pub struct UserOperationReceipt {
pub block_hash: Option<UserOperationReceiptBlockHash>,
pub block_number: Option<i64>,
pub gas_used: Option<String>,
pub revert: Option<UserOperationReceiptRevert>,
pub transaction_hash: Option<UserOperationReceiptTransactionHash>,
}
Expand description
The receipt that contains information about the execution of user operation.
JSON schema
{
"description": "The receipt that contains information about the execution of user operation.",
"examples": [
{
"revert": {
"data": "0x123",
"message": "reason for failure"
}
}
],
"type": "object",
"properties": {
"blockHash": {
"description": "The block hash of the block including the transaction as 0x-prefixed string.",
"examples": [
"0x386544b58930c0ec9e8f3ed09fb4cdb76b9ae0a1a37ddcacebe3925b57978e65"
],
"type": "string",
"pattern": "^0x[0-9a-fA-F]{64}$|^$"
},
"blockNumber": {
"description": "The block height (number) of the block including the transaction.",
"examples": [
29338819
],
"type": "integer"
},
"gasUsed": {
"description": "The gas used for landing this user operation.",
"examples": [
"100000"
],
"type": "string"
},
"revert": {
"$ref": "#/components/schemas/UserOperationReceiptRevert"
},
"transactionHash": {
"description": "The hash of this transaction as 0x-prefixed string.",
"examples": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
],
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
}
}
}
Fields§
§block_hash: Option<UserOperationReceiptBlockHash>
The block hash of the block including the transaction as 0x-prefixed string.
block_number: Option<i64>
The block height (number) of the block including the transaction.
gas_used: Option<String>
The gas used for landing this user operation.
revert: Option<UserOperationReceiptRevert>
§transaction_hash: Option<UserOperationReceiptTransactionHash>
The hash of this transaction as 0x-prefixed string.
Implementations§
Source§impl UserOperationReceipt
impl UserOperationReceipt
pub fn builder() -> UserOperationReceipt
Trait Implementations§
Source§impl Clone for UserOperationReceipt
impl Clone for UserOperationReceipt
Source§fn clone(&self) -> UserOperationReceipt
fn clone(&self) -> UserOperationReceipt
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 UserOperationReceipt
impl Debug for UserOperationReceipt
Source§impl Default for UserOperationReceipt
impl Default for UserOperationReceipt
Source§impl<'de> Deserialize<'de> for UserOperationReceipt
impl<'de> Deserialize<'de> for UserOperationReceipt
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<&UserOperationReceipt> for UserOperationReceipt
impl From<&UserOperationReceipt> for UserOperationReceipt
Source§fn from(value: &UserOperationReceipt) -> Self
fn from(value: &UserOperationReceipt) -> Self
Converts to this type from the input type.
Source§impl From<UserOperationReceipt> for UserOperationReceipt
impl From<UserOperationReceipt> for UserOperationReceipt
Source§fn from(value: UserOperationReceipt) -> Self
fn from(value: UserOperationReceipt) -> Self
Converts to this type from the input type.
Source§impl Serialize for UserOperationReceipt
impl Serialize for UserOperationReceipt
Source§impl TryFrom<UserOperationReceipt> for UserOperationReceipt
impl TryFrom<UserOperationReceipt> for UserOperationReceipt
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UserOperationReceipt) -> Result<Self, ConversionError>
fn try_from(value: UserOperationReceipt) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UserOperationReceipt
impl RefUnwindSafe for UserOperationReceipt
impl Send for UserOperationReceipt
impl Sync for UserOperationReceipt
impl Unpin for UserOperationReceipt
impl UnwindSafe for UserOperationReceipt
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