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(SizeLengthBox<Type, Global>), Set(SizeLengthBox<Type, Global>), Map(SizeLengthBox<Type, Global>, Box<Type, Global>), Array(u32Box<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

Tuple Fields of Pair

0: Box<Type, Global>1: Box<Type, Global>

Tuple Fields of List

0: SizeLength1: Box<Type, Global>

Tuple Fields of Set

0: SizeLength1: Box<Type, Global>

Tuple Fields of Map

0: SizeLength1: Box<Type, Global>2: Box<Type, Global>
Array(u32Box<Type, Global>)

Tuple Fields of Array

0: u321: Box<Type, Global>
Struct(Fields)

Tuple Fields of Struct

0: Fields

Tuple Fields of Enum

0: Vec<(String, Fields), Global>
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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Attempt to read a structure from a given source, failing if an error occurs during deserialization or reading. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Attempt to write the structure into the provided writer, failing if only part of the structure could be written. 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.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.