logo
pub enum TypeSignature {
Show 22 variants I8, I16, I32, I64, U8, U16, U32, U64, F32, F64, Bool, String, Datetime, Bytes, Raw, Value, ComponentInput, Ref { reference: String, }, List { element: Box<TypeSignature>, }, Optional { option: Box<TypeSignature>, }, Map { key: Box<TypeSignature>, value: Box<TypeSignature>, }, Link { provider: Option<String>, },
}
Expand description

Enum of valid types.

Variants

I8

I8 type.

I16

I16 type.

I32

I32 type.

I64

I64 type.

U8

u8 type.

U16

u16 type.

U32

u32 type.

U64

u64 type.

F32

f32 type.

F64

f64 type.

Bool

Boolean type.

String

String type.

Datetime

Date type.

Bytes

Raw bytes.

Raw

Raw value to be processed later.

Value

Any valid value.

ComponentInput

A full set of component inputs.

Ref

Fields

reference: String

The reference string

A reference to another type.

List

Fields

element: Box<TypeSignature>

The type of the list’s elements

A list type

Optional

Fields

option: Box<TypeSignature>

The actual type that is optional.

A type representing an optional value.

Map

Fields

key: Box<TypeSignature>

The type of the map’s keys.

value: Box<TypeSignature>

The type of the map’s values.

A HashMap-like type.

Fields

provider: Option<String>

The provider ID

A type representing a ProviderLink

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

Deserialize this value from the given Serde deserializer. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Get the inner HashMap.

Get a reference to the inner HashMap.

Get a mutable reference to the inner HashMap.

Constructor for the map.

Return a list of names in the inner HashMap.

Return true if the inner HashMap is empty.

Return the inner HashMap.

Return a reference to the inner HashMap.

Get the value for the requested field.

Insert a [T] into the inner map.

Returns the number of fields in the map.

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

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.