Enum near_sdk::PromiseOrValue[][src]

pub enum PromiseOrValue<T> {
    Promise(Promise),
    Value(T),
}

Variants

Promise(Promise)

Tuple Fields

Value(T)

Tuple Fields

0: T

Trait Implementations

Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more

Get the name of the type without brackets.

Helper method to add a single type definition to the map.

Serialize this instance into a vector of bytes.

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.