Enum stellar_client::resources::AssetIdentifier[][src]

pub enum AssetIdentifier {
    Native,
    CreditAlphanum4(AssetId),
    CreditAlphanum12(AssetId),
}

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 An identifer is the type, code, and issuer.

Variants

Stellar Lumens!

Asset with a 4 character code

Asset with a 12 character code

Methods

impl AssetIdentifier
[src]

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 code of this asset as a result.

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 issuer of this asset as a result

Returns true if this is the native lumen on the network

A new Asset can be a native stellar, or a fully identified asset

A type safe way of creating a native asset AssetIdentifier

A type safe way of creating an alphanum4 asset AssetIdentifier

A type safe way of creating an alphanum12 asset AssetIdentifier

Trait Implementations

impl Debug for AssetIdentifier
[src]

Formats the value using the given formatter. Read more

impl PartialEq for AssetIdentifier
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for AssetIdentifier
[src]

impl Clone for AssetIdentifier
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for AssetIdentifier
[src]

Serialize this value into the given Serde serializer. Read more

impl FromStr for AssetIdentifier
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations