Enum shuttle_core::Asset [] [src]

pub enum Asset {
    Native,
    Credit(CreditAsset),
}

Enum representing an asset.

Variants

The native asset (XLM).

A non-native asset, identified by asset code/issuer id.

Methods

impl Asset
[src]

[src]

Create the native asset: Lumens.

[src]

Create the asset with code issued by issuer.

Trait Implementations

impl Debug for Asset
[src]

[src]

Formats the value using the given formatter.

impl Clone for Asset
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Asset
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Asset
[src]

impl ToXdr<Asset> for Asset
[src]

[src]

Build the object that can be serialized to XDR.

[src]

Serialize to the writer w.

[src]

Serialize to base64.

impl<'de> FromXdr<'de, Asset> for Asset
[src]

[src]

Build the type from the XDR other object .

[src]

Deserialize from a reader r.

[src]

Deserialize from base64.