pub struct WalletTransfer {
pub amount: String,
pub amount_in_usd: Option<String>,
pub block_timestamp: i64,
pub from_address: String,
pub id: String,
pub to_address: String,
pub token_address: String,
pub transaction_signature: String,
pub transfer_type: String,
}Expand description
Wallet transfer
JSON schema
{
"description": "Wallet transfer",
"type": "object",
"required": [
"amount",
"blockTimestamp",
"fromAddress",
"id",
"toAddress",
"tokenAddress",
"transactionSignature",
"transferType"
],
"properties": {
"amount": {
"description": "ENTITY.WALLET_TRANSFER.AMOUNT",
"examples": [
"1.5"
],
"type": "string"
},
"amountInUsd": {
"description": "ENTITY.WALLET_TRANSFER.AMOUNT_IN_USD",
"examples": [
"225.00"
],
"type": "string"
},
"blockTimestamp": {
"description": "ENTITY.WALLET_TRANSFER.BLOCK_TIMESTAMP",
"examples": [
1717334400000
],
"type": "integer",
"format": "int64"
},
"fromAddress": {
"description": "ENTITY.WALLET_TRANSFER.FROM_ADDRESS",
"examples": [
"54Pz1e35z9uoFdnxtzjp7xZQoFiofqhdayQWBMN7dsuy"
],
"type": "string"
},
"id": {
"description": "ENTITY.WALLET_TRANSFER.ID",
"examples": [
"transfer-123"
],
"type": "string"
},
"toAddress": {
"description": "ENTITY.WALLET_TRANSFER.TO_ADDRESS",
"examples": [
"8X35rQUK2u9hfn8rMPwwr6ZSEUhbmfDPEapp589XyoM1"
],
"type": "string"
},
"tokenAddress": {
"description": "ENTITY.WALLET_TRANSFER.TOKEN_ADDRESS",
"examples": [
"So11111111111111111111111111111111111111112"
],
"type": "string"
},
"transactionSignature": {
"description": "ENTITY.WALLET_TRANSFER.TRANSACTION_SIGNATURE",
"examples": [
"4tEHfECrLJm8N7dNCfQSjhLG7LqdMuZhzBhRy7VRhjCt"
],
"type": "string"
},
"transferType": {
"description": "ENTITY.WALLET_TRANSFER.TRANSFER_TYPE",
"examples": [
"SEND"
],
"type": "string"
}
}
}Fields§
§amount: StringENTITY.WALLET_TRANSFER.AMOUNT
amount_in_usd: Option<String>ENTITY.WALLET_TRANSFER.AMOUNT_IN_USD
block_timestamp: i64ENTITY.WALLET_TRANSFER.BLOCK_TIMESTAMP
from_address: StringENTITY.WALLET_TRANSFER.FROM_ADDRESS
id: StringENTITY.WALLET_TRANSFER.ID
to_address: StringENTITY.WALLET_TRANSFER.TO_ADDRESS
token_address: StringENTITY.WALLET_TRANSFER.TOKEN_ADDRESS
transaction_signature: StringENTITY.WALLET_TRANSFER.TRANSACTION_SIGNATURE
transfer_type: StringENTITY.WALLET_TRANSFER.TRANSFER_TYPE
Implementations§
Source§impl WalletTransfer
impl WalletTransfer
pub fn builder() -> WalletTransfer
Trait Implementations§
Source§impl Clone for WalletTransfer
impl Clone for WalletTransfer
Source§fn clone(&self) -> WalletTransfer
fn clone(&self) -> WalletTransfer
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 WalletTransfer
impl Debug for WalletTransfer
Source§impl<'de> Deserialize<'de> for WalletTransfer
impl<'de> Deserialize<'de> for WalletTransfer
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<&WalletTransfer> for WalletTransfer
impl From<&WalletTransfer> for WalletTransfer
Source§fn from(value: &WalletTransfer) -> Self
fn from(value: &WalletTransfer) -> Self
Converts to this type from the input type.
Source§impl From<WalletTransfer> for WalletTransfer
impl From<WalletTransfer> for WalletTransfer
Source§fn from(value: WalletTransfer) -> Self
fn from(value: WalletTransfer) -> Self
Converts to this type from the input type.
Source§impl Serialize for WalletTransfer
impl Serialize for WalletTransfer
Source§impl TryFrom<WalletTransfer> for WalletTransfer
impl TryFrom<WalletTransfer> for WalletTransfer
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WalletTransfer) -> Result<Self, ConversionError>
fn try_from(value: WalletTransfer) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WalletTransfer
impl RefUnwindSafe for WalletTransfer
impl Send for WalletTransfer
impl Sync for WalletTransfer
impl Unpin for WalletTransfer
impl UnsafeUnpin for WalletTransfer
impl UnwindSafe for WalletTransfer
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