Module types

Source

Modules§

blob
data_serialization_types
decimal
from_cdrs
list
map
prelude
rows
tuple
udt
value

Structs§

CBytes
The structure that represents Cassandra byte type.
CBytesShort
Cassandra short bytes
CInet
The structure wich represets Cassandra [inet] (https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec#L222).
CString
CStringList
CStringLong

Constants§

INT_LEN
LONG_STR_LEN
SHORT_LEN
UUID_LEN

Traits§

AsRust
AsRustType
Should be used to represent a single column as a Rust value.
ByIndex
ByName
IntoRustByIndex
Should be used to return a single column as Rust value by its name.
IntoRustByName
Should be used to return a single column as Rust value by its name.

Functions§

cursor_next_value
from_bytes
Converts byte-array into u64
from_i_bytes
Converts byte-array into i64
from_u16_bytes
Converts byte-array into u16
i_to_n_bytes
Converts u64 numerical value into array of n bytes
to_bigint
Convers integer into Cassandra’s [int]
to_float
Converts f32 into bytes
to_float_big
Converts f64 into array of bytes
to_int
Convers integer into Cassandra’s [int]
to_n_bytes
Converts u64 numerical value into array of n bytes
to_short
Converts number i16 into Cassandra’s [short].
to_u
Convers integer into Cassandra’s [int]
to_u_big
Convers integer into Cassandra’s int
to_u_short
Converts number i16 into Cassandra’s short.
to_varint
Converts integer into Cassandra’s [varint].
try_f32_from_bytes
Tries to decode bytes array into f32.
try_f64_from_bytes
Tries to decode bytes array into f64.
try_from_bytes
Tryies to decode bytes array into u64.
try_i16_from_bytes
Tries to decode bytes array into i16.
try_i32_from_bytes
Tries to decode bytes array into i32.
try_i_from_bytes
Tries to decode bytes array into i64.
try_i_to_n_bytes
try_to_n_bytes
Tries to converts u64 numerical value into array of n bytes.
try_u16_from_bytes
Tryies to decode bytes array into u16.

Type Aliases§

CInt
Cassandra int type.
CIntShort
Cassandra int short type.