pub struct AccountCoinsResponse {
pub block_identifier: BlockIdentifier,
pub coins: Vec<Coin>,
pub metadata: Option<Value>,
}Expand description
AccountCoinsResponse : AccountCoinsResponse is returned on the /account/coins endpoint and includes all unspent Coins owned by an AccountIdentifier.
Fields§
§block_identifier: BlockIdentifier§coins: Vec<Coin>If a blockchain is UTXO-based, all unspent Coins owned by an account_identifier should be returned alongside the balance. It is highly recommended to populate this field so that users of the Rosetta API implementation don’t need to maintain their own indexer to track their UTXOs.
metadata: Option<Value>Account-based blockchains that utilize a nonce or sequence number should include that number in the metadata. This number could be unique to the identifier or global across the account address.
Implementations§
Source§impl AccountCoinsResponse
impl AccountCoinsResponse
Sourcepub fn new(
block_identifier: BlockIdentifier,
coins: Vec<Coin>,
) -> AccountCoinsResponse
pub fn new( block_identifier: BlockIdentifier, coins: Vec<Coin>, ) -> AccountCoinsResponse
AccountCoinsResponse is returned on the /account/coins endpoint and includes all unspent Coins owned by an AccountIdentifier.
Trait Implementations§
Source§impl Clone for AccountCoinsResponse
impl Clone for AccountCoinsResponse
Source§fn clone(&self) -> AccountCoinsResponse
fn clone(&self) -> AccountCoinsResponse
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 AccountCoinsResponse
impl Debug for AccountCoinsResponse
Source§impl Default for AccountCoinsResponse
impl Default for AccountCoinsResponse
Source§fn default() -> AccountCoinsResponse
fn default() -> AccountCoinsResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountCoinsResponse
impl<'de> Deserialize<'de> for AccountCoinsResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountCoinsResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountCoinsResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AccountCoinsResponse
impl PartialEq for AccountCoinsResponse
Source§impl Serialize for AccountCoinsResponse
impl Serialize for AccountCoinsResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AccountCoinsResponse
impl StructuralPartialEq for AccountCoinsResponse
Auto Trait Implementations§
impl Freeze for AccountCoinsResponse
impl RefUnwindSafe for AccountCoinsResponse
impl Send for AccountCoinsResponse
impl Sync for AccountCoinsResponse
impl Unpin for AccountCoinsResponse
impl UnwindSafe for AccountCoinsResponse
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