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
List(SizeLength, Box<Type, Global>)
Tuple Fields of List
0: SizeLength
1: Box<Type, Global>
Set(SizeLength, Box<Type, Global>)
Tuple Fields of Set
0: SizeLength
1: Box<Type, Global>
Struct(Fields)
Tuple Fields of Struct
0: Fields
String(SizeLength)
Tuple Fields of String
0: SizeLength
ContractName(SizeLength)
Tuple Fields of ContractName
0: SizeLength
ReceiveName(SizeLength)
Tuple Fields of ReceiveName
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