Enum skytable::DataType [−][src]
A data type as defined by the Terrapipe protocol
Every variant stays in an Option
for convenience while parsing. It’s like we first
create a Variant(None)
variant. Then we read the data which corresponds to it, and then we
replace None
with the appropriate object. When we first detect the type, we use this as a way of matching
avoiding duplication by writing another DataType
enum
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Str(String)
A string value
RespCode(RespCode)
A response code (it is kept as String
for “other error” types)
UnsignedInt(u64)
An unsigned 64-bit integer, equivalent to an u64