Type Alias scrypto::prelude::ScryptoValue
source · pub type ScryptoValue = Value<ScryptoCustomValueKind, ScryptoCustomValue>;
Aliased Type§
enum ScryptoValue {
Show 17 variants
Bool {
value: bool,
},
I8 {
value: i8,
},
I16 {
value: i16,
},
I32 {
value: i32,
},
I64 {
value: i64,
},
I128 {
value: i128,
},
U8 {
value: u8,
},
U16 {
value: u16,
},
U32 {
value: u32,
},
U64 {
value: u64,
},
U128 {
value: u128,
},
String {
value: String,
},
Enum {
discriminator: u8,
fields: Vec<Value<ScryptoCustomValueKind, ScryptoCustomValue>>,
},
Array {
element_value_kind: ValueKind<ScryptoCustomValueKind>,
elements: Vec<Value<ScryptoCustomValueKind, ScryptoCustomValue>>,
},
Tuple {
fields: Vec<Value<ScryptoCustomValueKind, ScryptoCustomValue>>,
},
Map {
key_value_kind: ValueKind<ScryptoCustomValueKind>,
value_value_kind: ValueKind<ScryptoCustomValueKind>,
entries: Vec<(Value<ScryptoCustomValueKind, ScryptoCustomValue>, Value<ScryptoCustomValueKind, ScryptoCustomValue>)>,
},
Custom {
value: ScryptoCustomValue,
},
}
Variants§
Bool
I8
I16
I32
I64
I128
U8
U16
U32
U64
U128
String
Enum
Array
Fields
§
element_value_kind: ValueKind<ScryptoCustomValueKind>
§
elements: Vec<Value<ScryptoCustomValueKind, ScryptoCustomValue>>
Tuple
Fields
§
fields: Vec<Value<ScryptoCustomValueKind, ScryptoCustomValue>>
Map
Fields
§
key_value_kind: ValueKind<ScryptoCustomValueKind>
§
value_value_kind: ValueKind<ScryptoCustomValueKind>
Custom
Fields
§
value: ScryptoCustomValue