pub struct OnchainTransaction {
pub network: PaymentSourceNetwork,
pub transaction_hash: String,
}Expand description
An onchain transaction associated with a payment action.
JSON schema
{
"description": "An onchain transaction associated with a payment action.",
"type": "object",
"required": [
"network",
"transactionHash"
],
"properties": {
"network": {
"description": "The blockchain network the transaction occurred on.",
"examples": [
"base"
],
"allOf": [
{
"$ref": "#/components/schemas/PaymentSourceNetwork"
}
]
},
"transactionHash": {
"description": "The blockchain transaction hash.",
"examples": [
"0xabc123def456789012345678901234567890abcdef1234567890abcdef123456"
],
"type": "string"
}
}
}Fields§
§network: PaymentSourceNetworkThe blockchain network the transaction occurred on.
transaction_hash: StringThe blockchain transaction hash.
Implementations§
Source§impl OnchainTransaction
impl OnchainTransaction
pub fn builder() -> OnchainTransaction
Trait Implementations§
Source§impl Clone for OnchainTransaction
impl Clone for OnchainTransaction
Source§impl Debug for OnchainTransaction
impl Debug for OnchainTransaction
Source§impl<'de> Deserialize<'de> for OnchainTransaction
impl<'de> Deserialize<'de> for OnchainTransaction
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<&OnchainTransaction> for OnchainTransaction
impl From<&OnchainTransaction> for OnchainTransaction
Source§fn from(value: &OnchainTransaction) -> Self
fn from(value: &OnchainTransaction) -> Self
Converts to this type from the input type.
Source§impl From<OnchainTransaction> for OnchainTransaction
impl From<OnchainTransaction> for OnchainTransaction
Source§fn from(value: OnchainTransaction) -> Self
fn from(value: OnchainTransaction) -> Self
Converts to this type from the input type.
Source§impl Serialize for OnchainTransaction
impl Serialize for OnchainTransaction
Source§impl TryFrom<OnchainTransaction> for OnchainTransaction
impl TryFrom<OnchainTransaction> for OnchainTransaction
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnchainTransaction) -> Result<Self, ConversionError>
fn try_from(value: OnchainTransaction) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnchainTransaction
impl RefUnwindSafe for OnchainTransaction
impl Send for OnchainTransaction
impl Sync for OnchainTransaction
impl Unpin for OnchainTransaction
impl UnsafeUnpin for OnchainTransaction
impl UnwindSafe for OnchainTransaction
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