Skip to main content

BalanceUpdateDto

Struct BalanceUpdateDto 

Source
pub struct BalanceUpdateDto {
Show 21 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: i64, pub block_timestamp: i64, pub change_type: BalanceChangeType, pub id: i64, 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

BalanceUpdateDto

JSON schema
{
 "type": "object",
 "required": [
   "accountOwnerAddress",
   "balanceChange",
   "balanceChangeInNative",
   "balanceChangeInUsd",
   "blockHash",
   "blockHeight",
   "blockSlot",
   "blockTimestamp",
   "changeType",
   "id",
   "index",
   "postBalance",
   "postBalanceInNative",
   "postBalanceInUsd",
   "preBalance",
   "preBalanceInNative",
   "preBalanceInUsd",
   "tokenAccountAddress",
   "tokenAddress",
   "transactionSignature",
   "type"
 ],
 "properties": {
   "accountOwnerAddress": {
     "description": "DTO.WALLET.BALANCE_UPDATE.ACCOUNT_OWNER_ADDRESS",
     "examples": [
       "MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2"
     ],
     "type": "string"
   },
   "balanceChange": {
     "description": "DTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE",
     "examples": [
       "100.000000"
     ],
     "type": "string"
   },
   "balanceChangeInNative": {
     "description": "DTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE_IN_NATIVE",
     "examples": [
       "0.500000000"
     ],
     "type": "string"
   },
   "balanceChangeInUsd": {
     "description": "DTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE_IN_USD",
     "examples": [
       "123.34"
     ],
     "type": "string"
   },
   "blockHash": {
     "description": "DTO.WALLET.BALANCE_UPDATE.BLOCK_HASH",
     "examples": [
       "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"
     ],
     "type": "string"
   },
   "blockHeight": {
     "description": "DTO.WALLET.BALANCE_UPDATE.BLOCK_HEIGHT",
     "examples": [
       123456789
     ],
     "type": "integer",
     "format": "int64"
   },
   "blockSlot": {
     "description": "DTO.WALLET.BALANCE_UPDATE.BLOCK_SLOT",
     "examples": [
       123456789
     ],
     "type": "integer",
     "format": "int64"
   },
   "blockTimestamp": {
     "description": "DTO.WALLET.BALANCE_UPDATE.BLOCK_TIMESTAMP",
     "examples": [
       1705312800
     ],
     "type": "integer",
     "format": "int64"
   },
   "changeType": {
     "description": "DTO.WALLET.BALANCE_UPDATE.CHANGE_TYPE",
     "examples": [
       "INCREASE"
     ],
     "allOf": [
       {
         "$ref": "#/components/schemas/BalanceChangeType"
       }
     ]
   },
   "id": {
     "description": "DTO.WALLET.BALANCE_UPDATE.ID",
     "examples": [
       "1"
     ],
     "type": "integer",
     "format": "int64"
   },
   "index": {
     "description": "DTO.WALLET.BALANCE_UPDATE.INDEX",
     "examples": [
       0
     ],
     "type": "integer",
     "format": "int64"
   },
   "postBalance": {
     "description": "DTO.WALLET.BALANCE_UPDATE.POST_BALANCE",
     "examples": [
       "1100.123456"
     ],
     "type": "string"
   },
   "postBalanceInNative": {
     "description": "DTO.WALLET.BALANCE_UPDATE.POST_BALANCE_IN_NATIVE",
     "examples": [
       "5.623456789"
     ],
     "type": "string"
   },
   "postBalanceInUsd": {
     "description": "DTO.WALLET.BALANCE_UPDATE.POST_BALANCE_IN_USD",
     "examples": [
       "1357.90"
     ],
     "type": "string"
   },
   "preBalance": {
     "description": "DTO.WALLET.BALANCE_UPDATE.PRE_BALANCE",
     "examples": [
       "1000.123456"
     ],
     "type": "string"
   },
   "preBalanceInNative": {
     "description": "DTO.WALLET.BALANCE_UPDATE.PRE_BALANCE_IN_NATIVE",
     "examples": [
       "5.123456789"
     ],
     "type": "string"
   },
   "preBalanceInUsd": {
     "description": "DTO.WALLET.BALANCE_UPDATE.PRE_BALANCE_IN_USD",
     "examples": [
       "1234.56"
     ],
     "type": "string"
   },
   "tokenAccountAddress": {
     "description": "DTO.WALLET.BALANCE_UPDATE.TOKEN_ACCOUNT_ADDRESS",
     "examples": [
       "MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2"
     ],
     "type": "string"
   },
   "tokenAddress": {
     "description": "DTO.WALLET.BALANCE_UPDATE.TOKEN_ADDRESS",
     "examples": [
       "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
     ],
     "type": "string"
   },
   "transactionSignature": {
     "description": "DTO.WALLET.BALANCE_UPDATE.TRANSACTION_SIGNATURE",
     "examples": [
       "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"
     ],
     "type": "string"
   },
   "type": {
     "description": "DTO.WALLET.BALANCE_UPDATE.TYPE",
     "examples": [
       "SPL"
     ],
     "allOf": [
       {
         "$ref": "#/components/schemas/BalanceTokenType"
       }
     ]
   }
 }
}

Fields§

§account_owner_address: String

DTO.WALLET.BALANCE_UPDATE.ACCOUNT_OWNER_ADDRESS

§balance_change: String

DTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE

§balance_change_in_native: String

DTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE_IN_NATIVE

§balance_change_in_usd: String

DTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE_IN_USD

§block_hash: String

DTO.WALLET.BALANCE_UPDATE.BLOCK_HASH

§block_height: i64

DTO.WALLET.BALANCE_UPDATE.BLOCK_HEIGHT

§block_slot: i64

DTO.WALLET.BALANCE_UPDATE.BLOCK_SLOT

§block_timestamp: i64

DTO.WALLET.BALANCE_UPDATE.BLOCK_TIMESTAMP

§change_type: BalanceChangeType

DTO.WALLET.BALANCE_UPDATE.CHANGE_TYPE

§id: i64

DTO.WALLET.BALANCE_UPDATE.ID

§index: i64

DTO.WALLET.BALANCE_UPDATE.INDEX

§post_balance: String

DTO.WALLET.BALANCE_UPDATE.POST_BALANCE

§post_balance_in_native: String

DTO.WALLET.BALANCE_UPDATE.POST_BALANCE_IN_NATIVE

§post_balance_in_usd: String

DTO.WALLET.BALANCE_UPDATE.POST_BALANCE_IN_USD

§pre_balance: String

DTO.WALLET.BALANCE_UPDATE.PRE_BALANCE

§pre_balance_in_native: String

DTO.WALLET.BALANCE_UPDATE.PRE_BALANCE_IN_NATIVE

§pre_balance_in_usd: String

DTO.WALLET.BALANCE_UPDATE.PRE_BALANCE_IN_USD

§token_account_address: String

DTO.WALLET.BALANCE_UPDATE.TOKEN_ACCOUNT_ADDRESS

§token_address: String

DTO.WALLET.BALANCE_UPDATE.TOKEN_ADDRESS

§transaction_signature: String

DTO.WALLET.BALANCE_UPDATE.TRANSACTION_SIGNATURE

§type_: BalanceTokenType

DTO.WALLET.BALANCE_UPDATE.TYPE

Implementations§

Trait Implementations§

Source§

impl Clone for BalanceUpdateDto

Source§

fn clone(&self) -> BalanceUpdateDto

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BalanceUpdateDto

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BalanceUpdateDto

Source§

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<&BalanceUpdateDto> for BalanceUpdateDto

Source§

fn from(value: &BalanceUpdateDto) -> Self

Converts to this type from the input type.
Source§

impl From<BalanceUpdateDto> for BalanceUpdateDto

Source§

fn from(value: BalanceUpdateDto) -> Self

Converts to this type from the input type.
Source§

impl Serialize for BalanceUpdateDto

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<BalanceUpdateDto> for BalanceUpdateDto

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: BalanceUpdateDto) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,