Enum near_sdk::PromiseOrValue
source · [−]pub enum PromiseOrValue<T> {
Promise(Promise),
Value(T),
}
Variants
Promise(Promise)
Value(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.
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.