pub struct UserOperationCompletedWebhookPayload {
pub actual_gas_cost: String,
pub actual_gas_used: String,
pub block_number: f64,
pub caip2: String,
pub log_index: f64,
pub nonce: String,
pub paymaster: Option<String>,
pub sender: String,
pub success: bool,
pub transaction_hash: String,
pub type_: UserOperationCompletedWebhookPayloadType,
pub user_op_hash: String,
}Expand description
Payload for the user_operation.completed webhook event.
JSON schema
{
"title": "UserOperationCompletedWebhookPayload",
"description": "Payload for the user_operation.completed webhook
event.",
"type": "object",
"required": [
"actual_gas_cost",
"actual_gas_used",
"block_number",
"caip2",
"log_index",
"nonce",
"sender",
"success",
"transaction_hash",
"type",
"user_op_hash"
],
"properties": {
"actual_gas_cost": {
"type": "string"
},
"actual_gas_used": {
"type": "string"
},
"block_number": {
"type": "number"
},
"caip2": {
"type": "string"
},
"log_index": {
"type": "number"
},
"nonce": {
"type": "string"
},
"paymaster": {
"type": "string"
},
"sender": {
"type": "string"
},
"success": {
"type": "boolean"
},
"transaction_hash": {
"type": "string"
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"user_operation.completed"
]
},
"user_op_hash": {
"type": "string"
}
},
"x-stainless-model":
"webhooks.user_operation_completed_webhook_payload"
}Fields§
§actual_gas_cost: String§actual_gas_used: String§block_number: f64§caip2: String§log_index: f64§nonce: String§paymaster: Option<String>§sender: String§success: bool§transaction_hash: String§type_: UserOperationCompletedWebhookPayloadTypeThe type of webhook event.
user_op_hash: StringTrait Implementations§
Source§impl Clone for UserOperationCompletedWebhookPayload
impl Clone for UserOperationCompletedWebhookPayload
Source§fn clone(&self) -> UserOperationCompletedWebhookPayload
fn clone(&self) -> UserOperationCompletedWebhookPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserOperationCompletedWebhookPayload
impl<'de> Deserialize<'de> for UserOperationCompletedWebhookPayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserOperationCompletedWebhookPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserOperationCompletedWebhookPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&UserOperationCompletedWebhookPayload> for UserOperationCompletedWebhookPayload
impl From<&UserOperationCompletedWebhookPayload> for UserOperationCompletedWebhookPayload
Source§fn from(
value: &UserOperationCompletedWebhookPayload,
) -> UserOperationCompletedWebhookPayload
fn from( value: &UserOperationCompletedWebhookPayload, ) -> UserOperationCompletedWebhookPayload
Converts to this type from the input type.
Source§impl From<UserOperationCompletedWebhookPayload> for WebhookPayload
impl From<UserOperationCompletedWebhookPayload> for WebhookPayload
Source§fn from(value: UserOperationCompletedWebhookPayload) -> WebhookPayload
fn from(value: UserOperationCompletedWebhookPayload) -> WebhookPayload
Converts to this type from the input type.
Source§impl Serialize for UserOperationCompletedWebhookPayload
impl Serialize for UserOperationCompletedWebhookPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UserOperationCompletedWebhookPayload
impl RefUnwindSafe for UserOperationCompletedWebhookPayload
impl Send for UserOperationCompletedWebhookPayload
impl Sync for UserOperationCompletedWebhookPayload
impl Unpin for UserOperationCompletedWebhookPayload
impl UnsafeUnpin for UserOperationCompletedWebhookPayload
impl UnwindSafe for UserOperationCompletedWebhookPayload
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