pub struct DataType(_);
Expand description

Any cassandra datatype

Implementations

Creates a new data type with value type.

Creates a new data type from an existing data type.

Creates a new data type from an existing data type.

Creates a new tuple data type.

Creates a new UDT (user defined type) data type.

Gets the value type of the specified data type.

Gets the type name of a UDT data type.

Sets the type name of a UDT data type.

Note: Only valid for UDT data types.

Gets the type name of a UDT data type.

Note: Only valid for UDT data types.

Sets the keyspace of a UDT data type.

Note: Only valid for UDT data types.

Gets the class name of a custom data type.

Note: Only valid for custom data types.

Sets the class name of a custom data type.

Note: Only valid for custom data types.

Gets the sub-data type count of a UDT (user defined type), tuple or collection.

Note: Only valid for UDT, tuple and collection data types.

Gets the sub-data type of a UDT (user defined type), tuple or collection at the specified index.

Note: Only valid for UDT, tuple and collection data types.

Gets the sub-data type of a UDT (user defined type) at the specified index.

Note: Only valid for UDT data types.

Gets the sub-type name of a UDT (user defined type) at the specified index.

Note: Only valid for UDT data types.

Adds a sub-data type to a tuple or collection.

Note: Only valid for tuple and collection data types.

Gets the sub-data type of a UDT (user defined type) at the specified index.

Note: Only valid for UDT data types.

Adds a sub-data type to a tuple or collection using a value type.

Note: Only valid for tuple and collection data types.

Adds a sub-data type to a tuple or collection using a value type.

Note: Only valid for tuple and collection data types.

Trait Implementations

Formats the value using the given formatter. Read more

Frees a data type instance.

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 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.