pub struct VaultAsset {Show 17 fields
pub id: String,
pub total: String,
pub balance: Option<String>,
pub available: String,
pub pending: String,
pub frozen: String,
pub locked_amount: String,
pub staked: Option<String>,
pub total_staked_cpu: Option<f64>,
pub total_staked_network: Option<String>,
pub self_staked_cpu: Option<String>,
pub self_staked_network: Option<String>,
pub pending_refund_cpu: Option<String>,
pub pending_refund_network: Option<String>,
pub block_height: Option<String>,
pub block_hash: Option<String>,
pub rewards_info: Option<RewardsInfo>,
}Fields§
§id: String§total: StringThe total wallet balance. Total = available + pending + lockedAmount + frozen - In EOS this value includes the network balance, self staking and pending refund. - For all other coins it is the balance as it appears on the blockchain.
balance: Option<String>Deprecated - replaced by "total"
available: StringFunds available for transfer. Equals: "total" minus "lockedAmount" minus "frozen" minus "pending"
pending: StringThe cumulative balance of all transactions pending to be cleared
frozen: StringThe cumulative frozen balance
locked_amount: StringFunds in outgoing transactions that are not yet published to the network
staked: Option<String>Deprecated
total_staked_cpu: Option<f64>Deprecated
total_staked_network: Option<String>Deprecated
self_staked_cpu: Option<String>Deprecated
self_staked_network: Option<String>Deprecated
pending_refund_cpu: Option<String>Deprecated
pending_refund_network: Option<String>Deprecated
block_height: Option<String>The height (number) of the block of the balance
block_hash: Option<String>The hash of the block of the balance
rewards_info: Option<RewardsInfo>Implementations§
Trait Implementations§
Source§impl Clone for VaultAsset
impl Clone for VaultAsset
Source§fn clone(&self) -> VaultAsset
fn clone(&self) -> VaultAsset
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 VaultAsset
impl Debug for VaultAsset
Source§impl Default for VaultAsset
impl Default for VaultAsset
Source§fn default() -> VaultAsset
fn default() -> VaultAsset
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VaultAsset
impl<'de> Deserialize<'de> for VaultAsset
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 PartialEq for VaultAsset
impl PartialEq for VaultAsset
Source§impl Serialize for VaultAsset
impl Serialize for VaultAsset
impl StructuralPartialEq for VaultAsset
Auto Trait Implementations§
impl Freeze for VaultAsset
impl RefUnwindSafe for VaultAsset
impl Send for VaultAsset
impl Sync for VaultAsset
impl Unpin for VaultAsset
impl UnwindSafe for VaultAsset
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