Struct stellar_client::resources::Asset[][src]

pub struct Asset { /* fields omitted */ }

Assets are the units that are traded on the Stellar Network. An asset consists of an type, code, and issuer. Any asset can be traded for any other asset.

https://www.stellar.org/developers/horizon/reference/resources/asset.html

Methods

impl Asset
[src]

The identifier of this asset.

The type of this asset: “credit_alphanum4”, or “credit_alphanum12”. Returns a slice that lives as long as the asset does.

The code of this asset. Returns a slice that lives as long as the asset does.

The issuer of this asset. This corresponds to the id of an account. Returns a slice that lives as long as the asset does.

The number of units of credit issued for this asset. This number is scaled by 10 million to display the number if the format a user would expect it in.

https://www.stellar.org/developers/guides/concepts/assets.html#amount-precision-and-representation

The number of accounts that: 1) trust this asset and 2) where if the asset has the auth_required flag then the account is authorized to hold the asset. Returns an unsigned 32-bit integer

If this field is true it means the anchor must approve anyone who wants to hold its credit, allowing it to control who its customers are

If this field is true it means the anchor can freeze credit held by another account. When credit is frozen for a particular account, that account can only send the credit back to the anchor–it can’t transfer the credit to any other account. This setting allows the issuing account to revoke credit that it accidentally issued or that was obtained improperly.

Returns the flags associated with this asset.

Trait Implementations

impl Debug for Asset
[src]

Formats the value using the given formatter. Read more

impl Clone for Asset
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'de> Deserialize<'de> for Asset
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Asset

impl Sync for Asset