Enum shuttle_core::Memo [] [src]

pub enum Memo {
    None,
    Text(String),
    Id(u64),
    Hash([u8; 32]),
    Return([u8; 32]),
}

Memo attached to transactions.

Variants

No memo

Text Memo

Id Memo

Hash Memo

Return Memo

Methods

impl Memo
[src]

[src]

Create new empty memo.

[src]

Create new id memo.

[src]

Create new text memo. text must be shorter than 28 bytes.

[src]

Create new hash memo.

[src]

Create new return memo.

[src]

Return true if memo is None.

[src]

Return true if memo is Id.

[src]

Return true if memo is Text.

[src]

Return true if memo is Hash.

[src]

Return true if memo is Return.

Trait Implementations

impl Debug for Memo
[src]

[src]

Formats the value using the given formatter.

impl Clone for Memo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Memo
[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 Memo
[src]

impl ToXdr<Memo> for Memo
[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, Memo> for Memo
[src]

[src]

Build the type from the XDR other object .

[src]

Deserialize from a reader r.

[src]

Deserialize from base64.