Enum concordium_std::schema::Type [−][src]
pub enum Type {
Show 27 variants
Unit,
Bool,
U8,
U16,
U32,
U64,
U128,
I8,
I16,
I32,
I64,
I128,
Amount,
AccountAddress,
ContractAddress,
Timestamp,
Duration,
Pair(Box<Type, Global>, Box<Type, Global>),
List(SizeLength, Box<Type, Global>),
Set(SizeLength, Box<Type, Global>),
Map(SizeLength, Box<Type, Global>, Box<Type, Global>),
Array(u32, Box<Type, Global>),
Struct(Fields),
Enum(Vec<(String, Fields), Global>),
String(SizeLength),
ContractName(SizeLength),
ReceiveName(SizeLength),
}
Expand description
Schema type used to describe the different types in a rust smart contract.
Variants
Unit
Bool
U8
U16
U32
U64
U128
I8
I16
I32
I64
I128
Amount
AccountAddress
ContractAddress
Timestamp
Duration
Pair(Box<Type, Global>, Box<Type, Global>)
List(SizeLength, Box<Type, Global>)
Set(SizeLength, Box<Type, Global>)
Map(SizeLength, Box<Type, Global>, Box<Type, Global>)
Array(u32, Box<Type, Global>)
Struct(Fields)
Tuple Fields
0: Fields
Enum(Vec<(String, Fields), Global>)
String(SizeLength)
Tuple Fields
0: SizeLength
ContractName(SizeLength)
Tuple Fields
0: SizeLength
ReceiveName(SizeLength)
Tuple Fields
0: SizeLength
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Type
impl UnwindSafe for Type
Blanket Implementations
Mutably borrows from an owned value. Read more