pub struct BalanceUpdate {Show 20 fields
pub account_owner_address: String,
pub balance_change: String,
pub balance_change_in_native: String,
pub balance_change_in_usd: String,
pub block_hash: String,
pub block_height: i64,
pub block_slot: Option<i64>,
pub block_timestamp: i64,
pub change_type: BalanceChangeType,
pub index: i64,
pub post_balance: String,
pub post_balance_in_native: String,
pub post_balance_in_usd: String,
pub pre_balance: String,
pub pre_balance_in_native: String,
pub pre_balance_in_usd: String,
pub token_account_address: String,
pub token_address: String,
pub transaction_signature: String,
pub type_: BalanceTokenType,
}Expand description
Balance update record
JSON schema
{
"description": "Balance update record",
"type": "object",
"required": [
"accountOwnerAddress",
"balanceChange",
"balanceChangeInNative",
"balanceChangeInUsd",
"blockHash",
"blockHeight",
"blockTimestamp",
"changeType",
"index",
"postBalance",
"postBalanceInNative",
"postBalanceInUsd",
"preBalance",
"preBalanceInNative",
"preBalanceInUsd",
"tokenAccountAddress",
"tokenAddress",
"transactionSignature",
"type"
],
"properties": {
"accountOwnerAddress": {
"description": "ENTITY.BALANCE_UPDATE.ACCOUNT_OWNER_ADDRESS",
"type": "string"
},
"balanceChange": {
"description": "ENTITY.BALANCE_UPDATE.BALANCE_CHANGE",
"type": "string"
},
"balanceChangeInNative": {
"description": "ENTITY.BALANCE_UPDATE.BALANCE_CHANGE_IN_NATIVE",
"type": "string"
},
"balanceChangeInUsd": {
"description": "ENTITY.BALANCE_UPDATE.BALANCE_CHANGE_IN_USD",
"type": "string"
},
"blockHash": {
"description": "ENTITY.BALANCE_UPDATE.BLOCK_HASH",
"type": "string"
},
"blockHeight": {
"description": "ENTITY.BALANCE_UPDATE.BLOCK_HEIGHT",
"type": "integer",
"format": "int64"
},
"blockSlot": {
"description": "ENTITY.BALANCE_UPDATE.BLOCK_SLOT",
"type": "integer",
"format": "int64"
},
"blockTimestamp": {
"description": "ENTITY.BALANCE_UPDATE.BLOCK_TIMESTAMP",
"type": "integer",
"format": "int64"
},
"changeType": {
"$ref": "#/components/schemas/BalanceChangeType"
},
"index": {
"description": "ENTITY.BALANCE_UPDATE.INDEX",
"type": "integer",
"format": "int64"
},
"postBalance": {
"description": "ENTITY.BALANCE_UPDATE.POST_BALANCE",
"type": "string"
},
"postBalanceInNative": {
"description": "ENTITY.BALANCE_UPDATE.POST_BALANCE_IN_NATIVE",
"type": "string"
},
"postBalanceInUsd": {
"description": "ENTITY.BALANCE_UPDATE.POST_BALANCE_IN_USD",
"type": "string"
},
"preBalance": {
"description": "ENTITY.BALANCE_UPDATE.PRE_BALANCE",
"type": "string"
},
"preBalanceInNative": {
"description": "ENTITY.BALANCE_UPDATE.PRE_BALANCE_IN_NATIVE",
"type": "string"
},
"preBalanceInUsd": {
"description": "ENTITY.BALANCE_UPDATE.PRE_BALANCE_IN_USD",
"type": "string"
},
"tokenAccountAddress": {
"description": "ENTITY.BALANCE_UPDATE.TOKEN_ACCOUNT_ADDRESS",
"type": "string"
},
"tokenAddress": {
"description": "ENTITY.BALANCE_UPDATE.TOKEN_ADDRESS",
"type": "string"
},
"transactionSignature": {
"description": "ENTITY.BALANCE_UPDATE.TRANSACTION_SIGNATURE",
"type": "string"
},
"type": {
"$ref": "#/components/schemas/BalanceTokenType"
}
}
}Fields§
§account_owner_address: StringENTITY.BALANCE_UPDATE.ACCOUNT_OWNER_ADDRESS
balance_change: StringENTITY.BALANCE_UPDATE.BALANCE_CHANGE
balance_change_in_native: StringENTITY.BALANCE_UPDATE.BALANCE_CHANGE_IN_NATIVE
balance_change_in_usd: StringENTITY.BALANCE_UPDATE.BALANCE_CHANGE_IN_USD
block_hash: StringENTITY.BALANCE_UPDATE.BLOCK_HASH
block_height: i64ENTITY.BALANCE_UPDATE.BLOCK_HEIGHT
block_slot: Option<i64>ENTITY.BALANCE_UPDATE.BLOCK_SLOT
block_timestamp: i64ENTITY.BALANCE_UPDATE.BLOCK_TIMESTAMP
change_type: BalanceChangeType§index: i64ENTITY.BALANCE_UPDATE.INDEX
post_balance: StringENTITY.BALANCE_UPDATE.POST_BALANCE
post_balance_in_native: StringENTITY.BALANCE_UPDATE.POST_BALANCE_IN_NATIVE
post_balance_in_usd: StringENTITY.BALANCE_UPDATE.POST_BALANCE_IN_USD
pre_balance: StringENTITY.BALANCE_UPDATE.PRE_BALANCE
pre_balance_in_native: StringENTITY.BALANCE_UPDATE.PRE_BALANCE_IN_NATIVE
pre_balance_in_usd: StringENTITY.BALANCE_UPDATE.PRE_BALANCE_IN_USD
token_account_address: StringENTITY.BALANCE_UPDATE.TOKEN_ACCOUNT_ADDRESS
token_address: StringENTITY.BALANCE_UPDATE.TOKEN_ADDRESS
transaction_signature: StringENTITY.BALANCE_UPDATE.TRANSACTION_SIGNATURE
type_: BalanceTokenTypeImplementations§
Source§impl BalanceUpdate
impl BalanceUpdate
pub fn builder() -> BalanceUpdate
Trait Implementations§
Source§impl Clone for BalanceUpdate
impl Clone for BalanceUpdate
Source§fn clone(&self) -> BalanceUpdate
fn clone(&self) -> BalanceUpdate
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 BalanceUpdate
impl Debug for BalanceUpdate
Source§impl<'de> Deserialize<'de> for BalanceUpdate
impl<'de> Deserialize<'de> for BalanceUpdate
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<&BalanceUpdate> for BalanceUpdate
impl From<&BalanceUpdate> for BalanceUpdate
Source§fn from(value: &BalanceUpdate) -> Self
fn from(value: &BalanceUpdate) -> Self
Converts to this type from the input type.
Source§impl From<BalanceUpdate> for BalanceUpdate
impl From<BalanceUpdate> for BalanceUpdate
Source§fn from(value: BalanceUpdate) -> Self
fn from(value: BalanceUpdate) -> Self
Converts to this type from the input type.
Source§impl Serialize for BalanceUpdate
impl Serialize for BalanceUpdate
Source§impl TryFrom<BalanceUpdate> for BalanceUpdate
impl TryFrom<BalanceUpdate> for BalanceUpdate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: BalanceUpdate) -> Result<Self, ConversionError>
fn try_from(value: BalanceUpdate) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BalanceUpdate
impl RefUnwindSafe for BalanceUpdate
impl Send for BalanceUpdate
impl Sync for BalanceUpdate
impl Unpin for BalanceUpdate
impl UnsafeUnpin for BalanceUpdate
impl UnwindSafe for BalanceUpdate
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