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

Pair(Box<Type, Global>, Box<Type, Global>)

Tuple Fields

List(SizeLengthBox<Type, Global>)

Tuple Fields

Set(SizeLengthBox<Type, Global>)

Tuple Fields

Map(SizeLengthBox<Type, Global>, Box<Type, Global>)

Tuple Fields

Array(u32Box<Type, Global>)

Tuple Fields

0: u32

Struct(Fields)

Tuple Fields

0: Fields

Enum(Vec<(String, Fields), Global>)

Tuple Fields

String(SizeLength)

Tuple Fields

ContractName(SizeLength)

Tuple Fields

ReceiveName(SizeLength)

Tuple Fields

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)

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.